J JnSklikas Member Jun 17, 2020 #1 I have created a small apk that gets data from an mssql database. When I run it on my computer (debug or release mode) I can get the logs when I am connected with B4A Bridge. Is there a way to get the logs when the app runs in my clients PDA? Thank you
I have created a small apk that gets data from an mssql database. When I run it on my computer (debug or release mode) I can get the logs when I am connected with B4A Bridge. Is there a way to get the logs when the app runs in my clients PDA? Thank you
Erel B4X founder Staff member Licensed User Longtime User Jun 18, 2020 #2 Not so simple. You can use LogCat from the Phone library to read the app logs programmatically. https://www.b4x.com/search?query=LogCat Upvote 0
Not so simple. You can use LogCat from the Phone library to read the app logs programmatically. https://www.b4x.com/search?query=LogCat
J JnSklikas Member Jun 18, 2020 #3 Erel thank you for your answer Is it possible to capture the log error as a string. I can create a sub that would write this string to a table in the mssql something like this Sub slog (sqlstr As String) If xlog<> 1 Then Return Dim cursor As JdbcResultSet Dim xsql As String xsql = "update Z_SETUP set xsql='" & sqlstr & "' where id=1" Log(xsql) Main.sqlall.ExecNonQuery(xsql) End Sub Upvote 0
Erel thank you for your answer Is it possible to capture the log error as a string. I can create a sub that would write this string to a table in the mssql something like this Sub slog (sqlstr As String) If xlog<> 1 Then Return Dim cursor As JdbcResultSet Dim xsql As String xsql = "update Z_SETUP set xsql='" & sqlstr & "' where id=1" Log(xsql) Main.sqlall.ExecNonQuery(xsql) End Sub
Erel B4X founder Staff member Licensed User Longtime User Jun 18, 2020 #4 Please use [code]code here...[/code] tags when posting code. Yes, it is possible. Search for LogCat. Upvote 0