-
Notifications
You must be signed in to change notification settings - Fork 423
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
audio don't work on android #644
Comments
You need to give proper permissions in order for the function call to work. In your |
Hello, I'm new in Python and tried the example of audio code in this github, but it does not work. File "c:/Users/thosiba/Downloads/plyer-master/plyer-master/examples/audio/main.py", line 102, in |
you need to ask the permition at runtime + compilation (in .spec) |
Permission has already exists in .spec Thank you |
in you .spec:
in your main.py file if __name__ == "__main__":
# ... some code
if platform == "android":
from android.permissions import request_permissions, Permission
request_permissions([
Permission.RECORD_AUDIO,
# .... other permission
])
# ... other code |
I'm using kivy and p4a both on develop branch
On android :
Code :
Error
The text was updated successfully, but these errors were encountered: