Android Question TextRecognition based on MLKit fails

Status
Not open for further replies.

benyamin

Member
Hello @Erel, TextRecognition based on MLKit is down. I left a few messages on the site, but unfortunately you didn't read them. It seems that Google made some changes that caused the B4A version to stop working. With the current sample, this log comes com.google.mlkit.common.MlKitException: Waiting for the text optional module to be downloaded. Please wait.

It seems that Google has separated TextRecognition from play-services and released it as an independent API (com.google.mlkit:text-recognition). Thank you for checking and seeing what happened. I didn't make any changes to the codes and suddenly I realized from user reports that it
was down.

https://www.b4x.com/android/forum/threads/b4x-textrecognition-based-on-mlkit.161210/#content

@Erel
 

omo

Active Member
Licensed User
Longtime User
As I read this your message now, I rushed to confirm my related b4a app that uses the same mlkit text recognition. Mine is working fine in android 14, SDK 34, are you sure fault is not from your code? Have you ran same b4a version that worked before, but just stopped working or are you just running it for the first time?

If running for the first time, try to ensure all the necessary SDK components are installed and ensure your sdk is updated to sdk 34. Also, ensure most of your core related library used like Core are checked against online version in the library tab to ensure they are updated to the latest version.

Don't forget google new policy that affects mediachooser by declaring appropriate service type as Erel instructed. I am not Infront of my computer at moment, but mine is working with no issue on my android phone, I am not sure it should be because of this your statement: "... It seems that Google made some changes that caused the B4A version to stop working..."
 
Last edited:
Upvote 0
Status
Not open for further replies.