Search in sources :

Example 1 with FinishListener

use of com.caro.smartmodule.zxing.decode.FinishListener in project smartmodule by carozhu.

the class CaptureActivity method displayFrameworkBugMessageAndExit.

/**
     * 若摄像头被占用或者摄像头有问题则跳出提示对话框
     */
private void displayFrameworkBugMessageAndExit() {
    AlertDialog.Builder builder = new AlertDialog.Builder(this);
    //builder.setIcon(R.drawable.launcher_icon);
    builder.setTitle(getString(R.string.app_name));
    builder.setMessage(getString(R.string.msg_camera_framework_bug));
    builder.setPositiveButton(R.string.button_ok, new FinishListener(this));
    builder.setOnCancelListener(new FinishListener(this));
    builder.show();
}
Also used : AlertDialog(android.support.v7.app.AlertDialog) FinishListener(com.caro.smartmodule.zxing.decode.FinishListener)

Aggregations

AlertDialog (android.support.v7.app.AlertDialog)1 FinishListener (com.caro.smartmodule.zxing.decode.FinishListener)1