Reputation: 2425
I follow this blog to integrate zxing barcode scanner into my Android app natively. Thanks Zxing and the blog.
But there is a problem, if I already have installed the Zxing Qr code scanner in my mobile phone, when I'm going to launch "com.google.zxing.client.android.SCAN" using
Intent intent = new Intent("com.google.zxing.client.android.SCAN");
it will display a dialog let my select the application to do.(Sorry at this time I have no right to put a picture)
When there is no the Zxing Qr code scanner in my mobile, it works fine. Could somebody please tell my how to just let it work without the selection dialog. (When I chose my own app under the Zxing app, it will let a error and force my app down)
Upvotes: 0
Views: 117
Reputation: 66866
You can't do this on Android. The platform will always let the user choose how to handle an Intent when there are multiple options (or, when a new option becomes available). You can't force the user to skip the dialog and force a choice for the user.
Upvotes: 1