I interskala Member Licensed User Jan 7, 2020 #1 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
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 Jan 7, 2020 #2 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
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.
I interskala Member Licensed User Jan 7, 2020 #3 Thanks for your reply lucasheer.. I will try your idea.. Upvote 0
Computersmith64 Well-Known Member Licensed User Longtime User Jan 7, 2020 #4 If you implement Firebase Crashlytics you will get more detailed error reports for apps that are running on your client's phone. You can use these reports to look at the Java code generated by B4A & work out where the error occurred in your code. https://www.b4x.com/android/forum/threads/crashlytics-crash-reports.87510/ - Colin. Upvote 0
If you implement Firebase Crashlytics you will get more detailed error reports for apps that are running on your client's phone. You can use these reports to look at the Java code generated by B4A & work out where the error occurred in your code. https://www.b4x.com/android/forum/threads/crashlytics-crash-reports.87510/ - Colin.