Arduino-Library icon indicating copy to clipboard operation
Arduino-Library copied to clipboard

App wont function on phone

Open Reinkai opened this issue 4 years ago • 4 comments

Hi, i used your code to create an android app for arduino. Then i build the apk and download on my phone. But the app doesnt function and phone supply power to arduino only. Should i open usb debugging when i use the app.

Sorry i am new to android studio.

Thanks.

Reinkai avatar Jun 16 '20 09:06 Reinkai

Hey. You need to enable OTG in your phone settings.

omaraflak avatar Jun 16 '20 09:06 omaraflak

The OTG is automatically enabled and usb is controlled by arduino. is it because my apk is
app-debug.apk. Or is it because im using type-C?

Thanks.

Reinkai avatar Jun 16 '20 11:06 Reinkai

@Reinkai, I have the current version of the library working on an Android with USB-C. OTG seems to be enabled automatically on the newer phones with USB-C. I find another common issue is when using non-genuine Arduinos that have a different vendor ID from the default. Since the library filters by vendor ID, you will need to add other IDs when setting up the library in your code.

mepix avatar Jul 25 '20 01:07 mepix

@OmarAflak

I'm using samsung m series phone, I don't see anything related to OTG in settings. This code doesn't work.

meet2011 avatar Aug 18 '20 19:08 meet2011