just create a variable in your Activity
:
public static final int ZBAR_SCANNER_REQUEST = 0;
public static final int ZBAR_OR_SCANNER_REQUEST = 1;
//etc
These are just used for handling activity result. In the short run, you can also comment out the onActivityResult
method to test the barcode is working. You then open the barcode with:
startActivity(intent);
Finally, be sure to read up on startActivityForResult
, since it is a very important topic when developing a multi-activity app.