Arduino-Library
Arduino-Library copied to clipboard
App wont function on phone
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.
Hey. You need to enable OTG in your phone settings.
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, 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.
@OmarAflak
I'm using samsung m series phone, I don't see anything related to OTG in settings. This code doesn't work.