-
Notifications
You must be signed in to change notification settings - Fork 434
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
How to turn on a flashlight on a phone with Android 9? #668
Comments
Android Permissions would be needed to be granted for various plyer/pyjnius features - for flash(light) have you requested Otherwise could you get a crash report via logcat - to see a reason for the crash. |
I requested permission when assembling in a bulldozer, as shown in the example. |
I requested permission for both the camera and the flashlight. |
Just checked and Otherwise again - would ideally want to see the log report. |
Could you show me what code you tried? |
Strangely, my application is not in the list of applications that are allowed or not allowed to use the camera. Although in the specification of the bulldozer I specified both the camera and the flash |
I think this issue was solved by this pull request #716 Tested under android 5. If you want to test change the requirements in your buildozer.spec and do best regards |
Some updates, today i was able to test in android 9 and my surprise is that using the legacy camera api not work. For get working the flashlight was added code for use the CameraManager (newer api) now it is working and tested on android 9 device, maybe will work on other android versions, tests are necesary. |
Please tell me how to turn on the flashlight on a phone with Android 9 using plyer and kivy/switch or kivy/button. Those examples that exist do not work. The application starts, but as soon as I press the button to turn on the flashlight, the application closes. Please show me how to do it correctly. Thank you in advance!
The text was updated successfully, but these errors were encountered: