I'm using mergAndroid's mergZXingGetBarcode to build an Android app that basically requires user to scan QR to login.
The scan function only works if the user device is installed with a specific 3rd party barcode scanner.
Is there a way to detect if an Android device is installed with the 3rd party app?
Detect if 3rd party app is installed (Android)
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 35
- Joined: Fri Jul 18, 2014 5:17 am
-
- Posts: 192
- Joined: Tue Mar 11, 2014 12:57 pm
Re: Detect if 3rd party app is installed (Android)
You could use when opening the stack, e.g. answer "To use .. you need to install xyz" with "OK, install", "Already installed" etc
So "OK install" takes you to E.G. http://zxing.appspot.com/scan
Whatever they respond - you don't ask them again.
Or, e.g. if the QR company has 'a custom url' you could look at http://lessons.runrev.com/m/4069/l/5867 ... rl-schemes and test for it.
e.g. try using:
zxing://scan/
then go back to answer "to use..." etc - if it's not present.
So "OK install" takes you to E.G. http://zxing.appspot.com/scan
Whatever they respond - you don't ask them again.
Or, e.g. if the QR company has 'a custom url' you could look at http://lessons.runrev.com/m/4069/l/5867 ... rl-schemes and test for it.
e.g. try using:
zxing://scan/
then go back to answer "to use..." etc - if it's not present.