Java 类com.google.zxing.decoding.InactivityTimer 实例源码

项目:TestForMyCapture    文件:CaptureActivity.java   
@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);
}
项目:eoe-android-app    文件:CaptureActivity.java   
/** 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);
}
项目:eoe_android    文件:CaptureActivity.java   
/** 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);
}