Android Question MLKit TextRecognition Example crashes...

Magma

Expert
Licensed User
Longtime User
Hi guys...

I am trying the following example as it is:
and specifically the TextRecognition link from there...

and when installing on my device just crashes and no error on debug...

What am I doing wrong ? any idea?

I have latest B4A, openjava jdk 19, using android.jar (sdk platform-30)
Ofcourse installed all mlkit, odml...

Testing on Samsung Galaxy A12 having Android 13...

Thanks in advance
 
Solution
...Well i ve re-installed - update Android SDK / build tools all worked !
Sorry for bothering

Thanks for reading....

So.. the right ACTION.. always... first READ THE MANUAL !

Magma

Expert
Licensed User
Longtime User
Well, making some changes on device..... enable usb debug and connecting with cable (not b4a bridge):
Installing file.
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
java.net.SocketException: Broken pipe
java.net.SocketException: Broken pipe
** Activity (main) Resume **
Connected to B4A-Bridge (Wifi)
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
Installing file.
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (sleep)
running waiting messages (1)
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (sleep)
running waiting messages (1)
** Activity (main) Resume **
Installing file.
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
Streams_terminated
 
Upvote 0

Magma

Expert
Licensed User
Longtime User
Upvote 1
Solution

Cesaral

Member
Experimenting with this example, I saw that with this manifests part, the B4X objects are not shown when the App start:

B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="35"/>

But if I use this part with an older SDK version, it works well:

B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="33"/>

This is the sort of things that frustrate me. I would appreciate any explanation about it. Thanks!
 
Upvote 0
Top