@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_capture); isOpen = false; prompt1 = (TextView) findViewById(R.id.prompt1); prompt2 = (TextView) findViewById(R.id.prompt2); photo = (Button) findViewById(R.id.photo); flash = (Button) findViewById(R.id.flash); myqrcode = (Button) findViewById(R.id.myqrcode); photo.setOnClickListener(this); flash.setOnClickListener(this); myqrcode.setOnClickListener(this); resetTextView(); CameraManager.init(getApplication()); initControl(); hasSurface = false; inactivityTimer = new InactivityTimer(this); }
/** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.qr_code_scan); CameraManager.init(getApplication()); initControl(); hasSurface = false; inactivityTimer = new InactivityTimer(this); }