HMS v1.04 adds support for HMS Scan kit.
Instructions:
Add to manifest editor:
Code:
Scanning happens in a separate activity. It will return an empty string if nothing was detected.
www.b4x.com
Instructions:
Add to manifest editor:
B4X:
CreateResourceFromFile(Macro, hms.hms_scan)
Code:
B4X:
Sub Button1_Click
rp.CheckAndRequest(rp.PERMISSION_CAMERA) 'rp is a global RuntimePermissions object.
Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean)
If Result Then
Wait For (hms.StartScan) Complete (ScanResult As String)
Log(ScanResult)
ToastMessageShow("Scan result: " & ScanResult, True)
End If
End Sub
HMS - Huawei SDK
Huawei is the number one manufacturer of phones (https://www.statista.com/statistics/271496/global-market-share-held-by-smartphone-vendors-since-4th-quarter-2009/). Due to USA restrictions, the new phones that they sell do not include Google Play, Google Play Services and other Google...