com.google.zxing.decoding.InactivityTimer Java Examples
The following examples show how to use
com.google.zxing.decoding.InactivityTimer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CaptureActivity.java From QrCodeLib with MIT License | 6 votes |
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_scanner); CameraManager.init(getApplication()); viewfinderView = (ViewfinderView) findViewById(R.id.viewfinder_content); back = (ImageButton) findViewById(R.id.btn_back); back.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { finish(); } }); btnFlash = (ImageButton) findViewById(R.id.btn_flash); btnFlash.setOnClickListener(flashListener); btnAlbum = (Button) findViewById(R.id.btn_album); btnAlbum.setOnClickListener(albumOnClick); hasSurface = false; inactivityTimer = new InactivityTimer(this); }
Example #2
Source File: CaptureActivity.java From vmqApk with MIT License | 5 votes |
/** * Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_scanner); //ViewUtil.addTopView(getApplicationContext(), this, R.string.scan_card); CameraManager.init(getApplication()); viewfinderView = (ViewfinderView) findViewById(R.id.viewfinder_content); back = (ImageButton) findViewById(R.id.btn_back); back.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { finish(); } }); btnFlash = (ImageButton) findViewById(R.id.btn_flash); btnFlash.setOnClickListener(flashListener); btnAlbum = (Button) findViewById(R.id.btn_album); btnAlbum.setOnClickListener(albumOnClick); // cancelScanButton = (Button) this.findViewById(R.id.btn_cancel_scan); hasSurface = false; inactivityTimer = new InactivityTimer(this); }
Example #3
Source File: CaptureActivity.java From QrCodeDemo4 with MIT License | 5 votes |
/** * Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_scanner); //ViewUtil.addTopView(getApplicationContext(), this, R.string.scan_card); CameraManager.init(getApplication()); viewfinderView = (ViewfinderView) findViewById(R.id.viewfinder_content); back = (ImageButton) findViewById(R.id.btn_back); back.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { finish(); } }); btnFlash = (ImageButton) findViewById(R.id.btn_flash); btnFlash.setOnClickListener(flashListener); btnAlbum = (Button) findViewById(R.id.btn_album); btnAlbum.setOnClickListener(albumOnClick); // cancelScanButton = (Button) this.findViewById(R.id.btn_cancel_scan); hasSurface = false; inactivityTimer = new InactivityTimer(this); }
Example #4
Source File: QrCodeScanActivity.java From AndroidHttpCapture with MIT License | 5 votes |
/** * Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_NO_TITLE); super.onCreate(savedInstanceState); setContentView(R.layout.activity_qr_code_scan); hasSurface = false; inactivityTimer = new InactivityTimer(this); }