I added the Zxing library to my android app but there is a problem.
When you already have a bar code scanner installed it presents you
with a popup.
I don’t want this to happen and changed the the action intent.
This is working, but when I open my app for the first time and select
the bar code scanner it crashes.
When I open it for the second time everything works fine.
Can anybody please help me?
I’ve already answered this a few times on the mailing list. As I said, you need to pay attention to
ActivityNotFoundException.Android throws this when you start an intent for which there is no app, and that’s what’s happening here. You need to handle this yourself by catching the exception and, maybe, sending the user to Market to download.
This is exactly what the code in
android-integrationinzxingdoes, which is why I also already told you to look at that.