I have an MK802IIIs android device basically running as a display board via a webview - similar to an airline flight arrival/departure board. Every now and then (not consistent so I can't determine the cause) the device enters the Activity_Pause routine. This app is the only app running and the orientation is not changed so I don't know why it enters Activity_Pause.
I do not want to enter Activity_Pause and want to know if the following code will cause a problem.
If this is not an option, is there another method to ignore a pause?
B4X:
Sub Activity_Pause (UserClosed as Boolean)
If UserClosed=False then
timer6.Enabled=true
Activity_Resume
End If
End Sub
There's no way to "ignore" Activity_Pause, that's how Android apps work, what you should do is search for the cause why the app goes to the background, maybe the system is killing your app? is there another process coming on?, things like that.