I have an app that was working in android 10 and would hang everytime in android 11.
The culprit was this.
B4X:
Dim mainRP As RuntimePermissions
mainRP.CheckAndRequest(mainRP.PERMISSION_WRITE_EXTERNAL_STORAGE)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
If Result = False Then
MsgboxAsync("Cannot continue without write permission", "Exiting...")
Activity.Finish
ExitApplication
End If
Log("Result = " & Result)
In android 10 on galaxy tab a... works fine. Android 11 on galaxy tab a it hangs and stops in the wait for activity call. You get Programname keeps stopping message.
To fix I removed all my legacy access to file.DirExternal and converted it all to file.DirInternal and commented it out. Seems to work on both platforms now.
To fix I removed all my legacy access to file.DirExternal and converted it all to file.DirInternal and commented it out. Seems to work on both platforms now.
There are several versioned components that affect the compilation process and the runtime behavior of our apps. The purpose of this tutorial is to explain the differences between them and help you choose which version to use. Each Android version is mapped to an api level. You can see this...
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...
Google seems intent on dumbing down Android to the point of uselessnes to me. I think of my devices as little computers and I want a proper file system on them, not the limited tortuous things that Google offers and that I don't understand, ContentChooser, FileProvider, ... o_O I'm getting old...