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

USB permission #2611

Closed
robotixdevteam opened this issue Jun 1, 2022 · 2 comments
Closed

USB permission #2611

robotixdevteam opened this issue Jun 1, 2022 · 2 comments
Labels

Comments

@robotixdevteam
Copy link

Is it possible to create an app in kivy which communicates with arduino through serial communication? I know that i have to give USB permission to android.How to give the usb permission and communicate between kivy app and arduino?

@misl6
Copy link
Member

misl6 commented Jun 5, 2022

Before using the USB APIs, a runtime permission should be requested: https://developer.android.com/guide/topics/connectivity/usb/host#permission-d

On python-for-android, you can use:

from android.permissions import request_permissions, Permission
request_permissions([Permission.WRITE_EXTERNAL_STORAGE])

to request the required permissions during runtime.

See: https://github.com/kivy/python-for-android/blob/8ab7c950618ebc3bf4c2afddbc4a416b8bf325d1/doc/source/apis.rst#runtime-permissions for additional info.

@misl6 misl6 added the support label Jun 5, 2022
@github-actions
Copy link

github-actions bot commented Jun 5, 2022

👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.

If you're having trouble installing or using python-for-android, maybe you could be interested in our quickstart guide.

Let us know if this comment was made in error, and we'll be happy to reopen the issue.

@github-actions github-actions bot closed this as completed Jun 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants