Detect if 3rd party app is installed (Android)

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
shoshinsha
Posts: 35
Joined: Fri Jul 18, 2014 5:17 am

Detect if 3rd party app is installed (Android)

Post by shoshinsha » Tue Oct 07, 2014 9:56 am

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?

newtronsols
Posts: 192
Joined: Tue Mar 11, 2014 12:57 pm

Re: Detect if 3rd party app is installed (Android)

Post by newtronsols » Fri Oct 10, 2014 10:50 pm

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.

Post Reply