You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a kivy app that creates a directory called DownTunes in Music Public Directory and downloads music in it the app works fine on my phone i tried it on another phone it opened correctly but it didnt create the directory DownTunes nor downloaded anything so i connect this phone to the laptop and open adb to see the erro,r the app worked fine after i connected to adb, i tried reinstalling disconnecting and everything and it still worked, i tried it on 2 other phones and it didnt work , it appears to me that the app is unable to acess phone storage unless connected to adb once , anyone knows why ? here is my code for acessing storage ( i tried to create the directory manually and then download it didnt work)
if platform == "android":
from android.permissions import request_permissions, Permission
@RobertFlatt Yes but my phone is android 13 and somehow it works, am now trying to request MANAGE_EXTERNAL_STORAGE, and making requestlegacyexternalstorage to true and will see if it works
I have a kivy app that creates a directory called DownTunes in Music Public Directory and downloads music in it the app works fine on my phone i tried it on another phone it opened correctly but it didnt create the directory DownTunes nor downloaded anything so i connect this phone to the laptop and open adb to see the erro,r the app worked fine after i connected to adb, i tried reinstalling disconnecting and everything and it still worked, i tried it on 2 other phones and it didnt work , it appears to me that the app is unable to acess phone storage unless connected to adb once , anyone knows why ? here is my code for acessing storage ( i tried to create the directory manually and then download it didnt work)
if platform == "android":
from android.permissions import request_permissions, Permission
Environment = autoclass("android.os.Environment")
path = Environment.getExternalStoragePublicDirectory(
Environment.DIRECTORY_MUSIC
).getAbsolutePath()
File = autoclass("java.io.File")
down_tunes_directory = File(path, "DownTunes")
@mainthread
def create_directory(dt):
if not down_tunes_directory.exists():
down_tunes_directory.mkdirs()
The text was updated successfully, but these errors were encountered: