My App using Camera2 occasionally crashes by going into Activity_Pause.
I have created a watchdog attached, but I cannot get the activity to restart or resume.
I have included MANAGE_OVERLAY_PERMISSION and also added it to the manifest, that part is working.
The timer is also working as it is only enabled when Activity is paused.
I seem to be failing in the timer to recover the situation.
The watchdog project is included.
I have created a watchdog attached, but I cannot get the activity to restart or resume.
I have included MANAGE_OVERLAY_PERMISSION and also added it to the manifest, that part is working.
The timer is also working as it is only enabled when Activity is paused.
I seem to be failing in the timer to recover the situation.
The watchdog project is included.
B4X:
Sub Watchdog_Tmr_Tick
'Main.Crashed=Main.Crashed+1
'If Main.Crashed>3 Then
Log("Watchdog_Tmr_Tick")
CallSubDelayed("Main","Activity_Resume")
Watchdog_Tmr.Enabled=False
'CallSubDelayed("Starter","Service_Start")
'CallSubDelayed("Main","Activity_Create")
'CallSubDelayed("Main","Boot")
'End If
End Sub
Attachments
Last edited: