Android Question Handling Application_Error in a Receiver

Alessandro71

Well-Known Member
Licensed User
Longtime User
I know that when a Receiver is started, the Starter service may not be already running, and starting it with StartService will fail because of missing permission to start in foreground.
Since the Starter service contains the Application_Error handling sub, if an exception is raised in the Receiver, will the Starter service be started to handle the exception, or just the Application_Error sub will be called?

B4X:
'Return true to allow the OS default exceptions handler to handle the uncaught exception.
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
    CrashHandler.GenerateReport(StackTrace,"")
    
    Return True
End Sub
 
Top