Hi I do have two tablets.
1. Asus Zenpad Z380M 8inch
2. Lenovo Tab4 8inch (Android 8.1.0)
Only at the Lenovo I can't create a directory or file in /storage/emulated/0
(= File.DirRootExternal)
This small test fails on the Lenovo:
Msgbox(File.DirRootExternal,"Show location of rootext.")
File.MakeDir(File.DirRootExternal, "DataHelloWorld")
If File.Exists(File.DirRootExternal, "DataHelloWorld") Then
Msgbox("Folder created. Yes!","Test")
Else
Msgbox("Folder is not created. Why?","Test") 'this is the result
End If
I allready added the next line to the manifest.
AddManifestText(<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>)
Outside my B4A app I can create a directory in that location using a commercial filemanager app.
With my B4A app I can succesfully check if the directory exists, but it is still not possible to write anything in that folder.
Extra info:
There is enough diskspace, no warning or error and no sd-card is inserted in the device.
Also there is no cabled connetion with a computer.
I can use File.DirDefaultExternal instead, and that works fine. The folder is created and writebale inside, but I want the data stay intact after removing or re-Installing the app. That is not possible at that location. Therefore I try to use rootexternal.
Can anybody help me solving this?