-
Notifications
You must be signed in to change notification settings - Fork 431
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
Android Filechooser not working #512
Comments
I had the same problem Android:6/7/8 |
No one actually found anything for that ? |
It is not enough any more to add the permissions in buildozer: you have to request permission at run-time, or manually add it after installing the app. I had the same problem until requesting permissions, then it worked. @Sirfanas Please test that and post your findings? Thanks |
@Zen-CODE thank's for the answer, but it's not working for me, maybe I actually did something wrong ?
Here is my buildozer.spec and main.py (which is copy paste from exemple/filechooser, just add permission request): src.zip Do you have any ideas ? |
I don't think I have any ideas, but thanks for posting |
Well nice to hear this helped you 😅 |
@Sirfanas Well, it's not fixed because we can't reproduce it. It works for me, so there is something different in your setup or code. Have you tried requesting runtime permissions? That's android specific, so not in the plyer example... |
Well, I just try again and I was able to get a filepath, I did well add Permission request in my Python file, but I didn't add it in the buildozer.spec... Maybe this should be explained in the documentation ? Putting zip with the plyer sample with android permission + my buildozer.spec |
Hi,
I need to get file from my Kivy app
I try the Filechooser code sample example/filechooser of Plyer repo but it's not working on Android:
When I push the "Select a file" button I have my native Android file chooser app, but when I choose a file, it go back to my Kivy screen and in "selected file" field I got [[]]
So I don't have the path to open the file. Have I miss something ?
I did add permission to storage on my app and I add plyer in buildozer requirements
Here the screenshot:
![Screenshots](https://camo.githubusercontent.com/6b5d537a0158484c2d51b98a7f66b0c6f626edb76702b8ab928f4a5bceaf58b5/68747470733a2f2f692e676f6f706963732e6e65742f7835774b512e706e67)
Any ideas ?
Thanks !
EDIT:
Forgot technical info 😄
Kivy: 1.11.1
Plyer: 1.4.0
Python: 3
Android: 9 (But don't seem to be linked cause I reproduce on 8)
The text was updated successfully, but these errors were encountered: