Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App wont function on phone #16

Open
Reinkai opened this issue Jun 16, 2020 · 4 comments
Open

App wont function on phone #16

Reinkai opened this issue Jun 16, 2020 · 4 comments

Comments

@Reinkai
Copy link

Reinkai commented Jun 16, 2020

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.

@omaraflak
Copy link
Owner

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

@Reinkai
Copy link
Author

Reinkai commented Jun 16, 2020

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.

@mepix
Copy link

mepix commented Jul 25, 2020

@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.

@meet2011
Copy link

meet2011 commented Aug 18, 2020

@omaraflak

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants