Android Question Check log error Application

interskala

Member
Licensed User
Hi.. all

I have problem..i am create app android connect to bluetooth device use asyncstreams..
i install in my phone i don't get a error but
when i install in my client when read data from bluetooth every 15-20 minutes have error message "unfortunately, xxxx the process stopped"

and how to check error log in myclient smartphone?? because in my smartphone running well..

Thank's
 

lucasheer

Active Member
Licensed User
Longtime User
I may be wrong, but I don't believe crash reports are accessible in android. It might be a developer feature, I'm not sure.

I think the easiest way would be to debug your client's phone and check the errors through the compiler.

Or use try/catch, and log to a file whenever an exception is thrown.
ex.
B4X:
File.WriteString(File.DirRootExternal, "log.txt", "SendFileToDatebase args: " & param1 & "," & param2 & " " & DateTime.Date(DateTime.now))

Put a try/catch around each of your functions, and write that function name + parameters to a log file. That way you know where the error occurs, and what parameters might cause it. You can write the original error message too.

You could even send your function exceptions to a webserver.
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
Upvote 0
Top