I would like to log application errors to SQLite from this Starter code:
All my SQLite related code is in my B4XMainPage, but I understand that that is not accessible from the Starter service.
In fact strange things happen in the IDE when I try, eg coding like this:
This will show a wavy red line at that code line and when moving the mouse over that I get in the IDE log:
[IDE message - 10:59:02]
An error occurred.
'=' is an unexpected token. The expected token is ';'. Line 1, position 114.
I have a SQLite connection class but that is not accessible either from the Starter service.
So, how do I log to the error to SQLite?
One option is to log to KVS instead, but I would prefer directly to SQLite.
RBS
B4X:
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
End Sub
All my SQLite related code is in my B4XMainPage, but I understand that that is not accessible from the Starter service.
In fact strange things happen in the IDE when I try, eg coding like this:
B4X:
Dim cMP as B4XMainPage
This will show a wavy red line at that code line and when moving the mouse over that I get in the IDE log:
[IDE message - 10:59:02]
An error occurred.
'=' is an unexpected token. The expected token is ';'. Line 1, position 114.
I have a SQLite connection class but that is not accessible either from the Starter service.
So, how do I log to the error to SQLite?
One option is to log to KVS instead, but I would prefer directly to SQLite.
RBS