KMatle Expert Licensed User Longtime User Dec 20, 2016 #1 Maybe it's too early but... My recent app (all others work) does not create "File.DirDefaultExternal" (= package name / files). Writing to it with B4X: File.WriteString(File.DirDefaultExternal,"Test.dat","Test") throws an exception B4X: java.io.FileNotFoundException: /storage/emulated/0/Android/data/my.package.name/files/Test.dat: open failed: ENOENT (No such file or directory) As it seems, the app does not create the folder in Android/data. Any ideas? Never had this issue (all other apps work).
Maybe it's too early but... My recent app (all others work) does not create "File.DirDefaultExternal" (= package name / files). Writing to it with B4X: File.WriteString(File.DirDefaultExternal,"Test.dat","Test") throws an exception B4X: java.io.FileNotFoundException: /storage/emulated/0/Android/data/my.package.name/files/Test.dat: open failed: ENOENT (No such file or directory) As it seems, the app does not create the folder in Android/data. Any ideas? Never had this issue (all other apps work).
KMatle Expert Licensed User Longtime User Dec 20, 2016 #2 Found it: targetSdkVersion was set to 23 by accident (set it to 22). From 23+ you need to add runtime permissions. Upvote 0
Found it: targetSdkVersion was set to 23 by accident (set it to 22). From 23+ you need to add runtime permissions.