Android: Avoiding "complete action using" when there's an app on the phone with the same pkg name as the library
<p>I'm using ZXing, the barcode scanning library. It's also an app that you can download and install independantly, but I am currently using it as a library to integrate into my app. I want to be able to invoke that library and bring up one of its activities. In order to do so I use 'intent' and 'startactivityforresult' in which I declare the package name 'com.google.zxing.client.android'. In doing so it prompts me with the ability to choose between the installed stand alone barcode app, or my app. I need to circumvent that dialog so that it will just choose my app by default. It's interesting because I believe the reason I can't use normal methods to bypass that 'complete action using' dialog is that the app has the same package name as the library that I'm using. Any assistance would be appreciated. If you require code or pictures then I'll post it but I believe that I've provided enough information.</p>