Hi,
According to:
https://dontkillmyapp.com/samsung
It seems Android v11 on Samsung has a lot of changes on keeping my App running. Even foreground service could be killed.
Two questions:
1. If Android is killing my service will Service_Destroy event running?
2. Will this affect StateManager? It looks like the RestoreState is not restoring
I use this in Activity_Create
And this:
Kind regards,
André
According to:
https://dontkillmyapp.com/samsung
It seems Android v11 on Samsung has a lot of changes on keeping my App running. Even foreground service could be killed.
Two questions:
1. If Android is killing my service will Service_Destroy event running?
2. Will this affect StateManager? It looks like the RestoreState is not restoring
I use this in Activity_Create
B4X:
StateManager.RestoreState(Activity, "Hoofdscherm", 0)
And this:
B4X:
Sub Activity_Pause (UserClosed As Boolean)
If UserClosed Then
StateManager.ResetState("Hoofdscherm")
ScreenSaver.ReleasePartialLock
Else
StateManager.SaveState(Activity, "Hoofdscherm")
End If
StateManager.SaveSettings
End Sub
Kind regards,
André