Android Question OTG drop out

niewd

New Member
Licensed User
Longtime User
I have an Oppo AX5s phone running Android 8.1.

On this phone the OTG connection closes after 10 minutes idle.

As a result I often try to compile an application using USB connection,
wait while the compiling takes place, and then get a message that the device is not found.

This is annoying because I waste time waiting for the compile before finding out that
it will not install to the phone.

Is it possible to have the IDE check for phone BEFORE compiling, so I at least get immediate
notification and can cancel the compile.

Perhaps an option in the IDE settings.

Thanks in advance for any help.
 

Ferdari

Active Member
Licensed User
Longtime User
You need to connect the phone first before compiling, you can use Bridge to connect over air trough Wifi

Connect your phone on the same Wifi network, then open Tools > B4A Bridge > Connect > Phone IP should be displayed if the app is open on phone.
 
Upvote 0

niewd

New Member
Licensed User
Longtime User
Thanks for your answer Ferdari.

I,m using B4A 9.80 and it does compile without the phone connected.

The compilation runs and is completed, files are saved in the "Objects" folder, and then
it tries to install the app to the phone which cannot be found because it is not connected.

I want to use USB connection because B4A Bridge is way too slow compared to USB.

As I said in my original post, I would like the IDE to check that phone is connected before starting
to compile. Maybe this is a question for Erel.
 
Upvote 0
Top