Android Question ABZxing returns nothing on QRCode reading

QtechLab

Active Member
Licensed User
Longtime User
Hello everybody,

I'm testing my old apps on Android 8.0 with my Nexus 5X.
I noticed an issue with ABZxing library. When i read any QRCode i receive an empty string as return value.

Did anyone had the same problem? Could it be a permission problem?

This is the portion of code that i use to read QRCodes:
B4X:
Sub QRcodeScan_Click
    QrScanner.ABGetBarcode("QrCodeScanner", "QR_CODE_TYPES")
End Sub

Sub QrCodeScanner_BarcodeFound (barCode As String, formatName As String)
        Dim IndexPassword As Int = barCode.IndexOf("PSW")
        Dim IndexName As Int = barCode.IndexOf("NAM")
        Dim NAME As String = barCode.SubString2(IndexName+4, IndexPassword)
        Dim PSW As String = barCode.SubString(IndexPassword + 4)

        TxtCheckPassword.Text = PSW
        TxtName.Text = NAME
        CallSubDelayed(Me,"SaveValuesToDB")
End Sub

And here there is my Manifest Editor:
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="19"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo.Light")
'End of default text.

AddPermission(android.permission.READ_PHONE_STATE)
AddPermission(android.permission.CAMERA)

Thanks in advance for your time.
Greetings from Italy
 
Top