Reputation: 3025
The package name of my project is com.mohit.verma I do not want to install the zxing bar code scanner app externally. I just want to use the library files. So where should I change the package names? Any help would be appreciated... My Code is as below:
barCodeScanner.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
intent = new Intent("com.google.zxing.client.android.SCAN");
intent.setPackage("com.google.zxing.client.android");
// intent.putExtra("SCAN_MODE", "QR_CODE_MODE");
//intent.putExtra("com.google.zxing.client.android.SCAN.SCAN_MODE", "QR_CODE_MODE");
startActivityForResult(intent,0);
}
});
Upvotes: 4
Views: 586
Reputation: 1471
setPackage() is optional. Plenty of SO code and links from April and March.
Upvotes: 2