I have an app that was working in android 10 and would hang everytime in android 11.
The culprit was this.
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.
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.