Android Question wait for complete - how to?

trepdas

Active Member
Licensed User
Longtime User
Hello good people,

in our project, I call to decode a bitmap with google android vision ocr.
I need to wait for it to finish before I can continue.

B4X:
mvbm.Initialize("mvbm")  
    mvbm.decodeBitmap(Bm)


when it completes it brings out results with this sub :

B4X:
Sub mvbm_lines_result(lines As String)

    Log("B4A Lines = " & lines)

End Sub


I have tried several options all resulted with error :/

i.e.
wait for (mvbm.decodeBitmap(Bm)) complete (Bm1 As Bitmap)

how to make it work ?

?
 
Top