B4J Question How to capture crash log and send it to a server

xulihang

Active Member
Licensed User
Longtime User
Hi there,

I want to show crash logs to users and let them choose whether to upload it with a crash log dialog.

But when a b4j app crashes, it exits immediately. How to prevent it from closing so a crash log dialog can appear?
 

xulihang

Active Member
Licensed User
Longtime User
B4X:
'Return true to allow the default exceptions handler to handle the uncaught exception.
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
    Return True
End Sub

No. I will check this out.

Previously, I use try catch to surround the code which possibly causes crashes. But I can not cover them all.
 
Upvote 0
Top