Peter
Peter

Reputation: 521

How to handle zxing if not installed on Device?

I'm developing an app that has QR code reading ability, i'm using the Zxing library, launching via intent, so the Barcode Scanner is handling the QR reading functionality, my question is, if the user doesnt have the Barcode Scanner App installed on their device, is there a way to bring them to the app store to get the application for their device?

Peter

Upvotes: 1

Views: 837

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006674

You should be using the ZXing IntentIntegrator, which will automatically give the user the option to visit the Play Store if the app is not installed on their device.

Here is a sample project using IntentIntegrator, including a JAR edition of that class (in the project's libs/ directory).

Upvotes: 3

Related Questions