![Smile :)](./images/smilies/icon_smile.gif)
Allen
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
on openCard
mergAVRequestMediaAccess "video"
end openCard
Code: Select all
On StartReadQR
mergAVCamSet "visible","true"
mergAVCamStartBarcodeReader
end StartReadQR
Code: Select all
on mergAVCamBarcodeFound pBarcode, pBarcodeType
answer pBarcode
end mergAVCamBarcodeFound
Code: Select all
on StopReadQR
mergAVCamStopBarcodeReader
end StopReadQR
Code: Select all
put mergZXingGetBarcode() into tResult
I've used something like this:The biggest problem is that unless you have "Barcode Scanner" installed, the app will crash when you try to use this.
I have solved this by requesting a confirmation that "Barcode Scanner" is installed on the device (the first time it is to be used) and then saving the answer so that the question is not asked each time.
Code: Select all
on checkScanInstall
answer "To use this feature..." & cr & cr & "Confirm that you have installed the app" && QUOTE & "Barcode Scanner" & QUOTE && "from Google Play..." & cr & cr \
& "if not, follow the link above for installation!" with "Cansel" or "I confirm!"
if it is "Cansel"
then
exit to top
else
set the defaultFolder to specialFolderPath("documents")
put true into URL ("file:ScannerInstall.txt")
end if
end checkScanInstall
I don't see mergZXing in the inclusions pane, nor in the dictionary. Was it discontinued? Also, so far, I don't see any "merg" externals that are compatible with Android yet. This is a source of dismay to many of us.Peter@multidesk.se wrote: ↑Mon Jan 07, 2019 7:04 pmYes, Install: https://play.google.com/store/apps/deta ... nt.android
Yes, Copy file AndroidQR.lcext into your projects copy files pane..
Then use:
Code: Select all
put mergZXingGetBarcode() into tResult