Android Question Uncaught Exceptions

Devv

Active Member
Licensed User
Longtime User
i'm testing the new 5.5 feature Uncaught Exceptions so in service1 i wrote

B4X:
Sub Process_Globals
    Dim eei As Int = "sdffds"
End Sub


the starter service
B4X:
#Region  Service Attributes
    #StartAtBoot: False
    #ExcludeFromLibrary: True
#End Region

Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.

End Sub

Sub Service_Create
    'This is the program entry point.
    'This is a good place to load resources that are not specific to a single activity.

End Sub

Sub Service_Start (StartingIntent As Intent)

End Sub

'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
    Log(Error & ":" & StackTrace)
    Return False
End Sub

Sub Service_Destroy

End Sub


i think it supposed to not crash the app but it is still crashing ,i want to ignore the error and keep running any ideas?
 
Top