Search code examples
androidintegrationzxingbarcode-scanner

Distributing the ZXing APK file with my app


I wish to use the ZXing barcode scanner app along with my app and their site recommends "distributing the project's release, rather than building from source, for best user experience". https://code.google.com/p/zxing/wiki/FrequentlyAskedQuestions

I've searched and searched and haven't come across a way to have one's own APK file in Google Play and have someone else's APK be loaded along with it when a user installs my app.

Has anyone had any experience doing this with an APK or more specifically the ZXing Barcode Scanner?

I know I can prompt the user midstream to download the app but that is not ideal for the user experience I'm interested in offering.


Solution

  • You cant deploy a second apk with your apk as far as I know. The best you can do is make the acquisition of the 3rd party app you want to send intents to as smooth as possible.

    For instance when the user hits the button with the intention of scanning search for the zxing package and if not found redirect the user to download zxing from the playstore.

    Using ZXing to create an android barcode scanning app