Android: Avoiding Full Action Using Dialog

I made a Scanner QR code using Intent using the Zxing library and I saved the library in the application so that my application no longer requires a barcode scanner. But when the barcode scanner is already in the operating system, when the application starts, a dialog box appears asking for the full action using: a barcode scanner or my application. When I have the whole library in my own application, how can I avoid this dialog box. Please help me.

Code example:

Intent in = new intent ("com.google.zxing.android.SCAN");

+5
source share
2 answers

For use:

Intent intent=new Intent("com.google.zxing.client.android.SCAN");
intent.setClassName("com.google.zxing.client.android", "com.google.zxing.client.android.CaptureActivity");
startActivityForResult(intent, 0);

:

Intent intent=new Intent("com.google.zxing.client.android.SCAN");
intent.setClassName(this, "com.google.zxing.client.android.CaptureActivity");
startActivityForResult(intent, 0);
+6
0

All Articles