Answer the question
In order to leave comments, you need to log in
How to see the log of an android application when it was not connected to the debugger?
I am writing an android app. It crashes very rarely, it happens when I have already disconnected from the debugger in Android Studio. Any way you can see the debug information in this case?
In my app, an Activity (parent) calls another one (child) via startActivityForResult. An SQLite entry is added to the child Activity and it closes with RESULT_OK. The Parent Activity catches the child's success event, reads the last entry from SQLite, and adds it to the ListView.
It's very rare for an application to crash after the child Activity closes, successfully dumping a new entry into SQLite. There is an assumption that this is due to the fact that the system clears the resources allocated under the parent Activity. Without a log, this is just my guess. I could not reproduce the error with the debugger connected.
Answer the question
In order to leave comments, you need to log in
For these purposes, you can install a third-party application on the device, such as CatLog or something else .
I recommend connecting and using RollBar . As soon as your application crashes on any device where it is installed, you will see an error log on the site. For personal use, a free subscription is enough for you.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question