I made an app using App Inventors. It works, but there is little annoying problem. If you open program and bt device that it should connect automatically (my ebike arduino hc-05 bt ) is not on, app "crash" and android show ANR error screen ("Application Not Responding"). If i click wait, that error goes away and not come back until i close app and open it again.
If my bike arduino is on and app made connection, then everything work fine, no ANR error etc. So how i can get rid of this ANR when there is not bt connetion.
There is screenshot when error come in app:
There is error in android logcat:
There is my blocks in image:
There is my app aia file:
Efat_control_code.aia (51.6 KB)