Android Question ZXingLib - QR / DataMatrix codes scanner

luke2012

Well-Known Member
Licensed User
Longtime User
Hi All,
I'm using the project and lib files in post #106 of the great library made by icefairy333 and by Johan Schoeman. https://www.b4x.com/android/forum/t...scan-qr-codes-and-other-1d-2d-barcodes.49084/

The sample works fine.
I'm trying to port the code within my project but when I run the app in the log I see:

*** LOG
onActivityResult: wi is null
sending message to waiting queue (myzx_timedout)
running waiting messages (1)
timedOut true
*** LOG

The myzx_timedout event is always raised ( when I call zx.BeginScan("myzx") ) and the scanner never start.

The code is the same of the sample project attached to the post #106
https://www.b4x.com/android/forum/t...scan-qr-codes-and-other-1d-2d-barcodes.49084/

Any idea about this?
 

luke2012

Well-Known Member
Licensed User
Longtime User
SOLVED

I fixed it! Missing (in the manifest)...

AddApplicationText(<activity android:name="ice.zxing.CaptureActivity"
android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:windowSoftInputMode="stateAlwaysHidden">
</activity>)

Thanks to Johan for the help! :)
 
Upvote 0
Top