'Dir Internal:
Dim lReader As TextReader
TextReader1.Initialize(File.OpenInput(File.DirInternal & "/bzmonitor" , "server.ini"))
Dim lLine As String
lLine = lReader.ReadLine
pidlocal=lLine
lReader.Close
'Result:java.io.FileNotFoundException: /data/user/0/com.bzmonitor/files/bzmonitor/server.ini: open failed: ENOENT (No such file or directory)
'Canno't create the path permission denied
'*****'
'Dir DEfault External:
Dim lReader As TextReader
TextReader1.Initialize(File.OpenInput(File.DirDefaultExternal & "/bzmonitor" , "server.ini"))
Dim lLine As String
lLine = lReader.ReadLine
pidlocal=lLine
lReader.Close
'Result: java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.bzmonitor/files/bzmonitor/server.ini: open failed: EACCES (Permission denied)
'This Works allways great but not anymore in Android 13
Starting with Android 13 I Notice that file.DirInternal and File.DirDefaultExternal do not allow access anymore due to security access, then, where the app will save data? where to load app Images previusly saved? how to read app config text files information?
B4A + B4i example: https://www.b4x.com/android/forum/threads/b4x-texteditor-save-and-load-external-files.132731/#post-838166 List of classes or libraries that can be used to access secondary storages: ContentChooser (Phone libray) - allows the user to select a resource or file using external...
This is a B4i and B4A example, which demonstrates various external files related tasks. The behavior is not exactly the same as the platforms capabilities and behavior are different. B4A Load external files, including online files, using ContentChooser. Save to an external target, using...