I made the following tests:
- Text files in File.DirDefaultExternal: does not work.
- Text files in File.DirRootExternal: does not work.
- Text files in File.DirInternal: works but I can't see the files.
- Text files in File.DirInternalCache : works but I can't see the files.
Sincerely
FerGeoRi
android.jar / targetSdkVersion / minSdkVersion | B4X Programming Forum
- 29 - No permission to access File.DirRootExternal, even with the STORAGE permission. For now there is a simple workaround:
B4X:
Set in the manifest editor. SetApplicationAttribute(android:requestLegacyExternalStorage, true)
It will not work with targetSdkVersion=30. Avoid using File.DirRootExternal. Either use File.DirInternal or RuntimePermissions.GetSafeDirDefaultExternal.
Good evening.
It's ok, my application works fine on Android10.
With :
- <uses-sdk android:minSdkVersion="5" android:targetSdkVersion="29"/>
- SertApplicationAttribute(android:requestLegacyExternalStorage, True)
- android-29\android.jar
Many thanks to mcqueccu and agraham for your help.
Cordially
FerGeoRi