Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Retrieve logcat before crash (reboot) on a real device

Tags:

android

logcat

I am developing an application and during my testing on a real device I have found that it will crash and cause the phone to reboot (worrying I know...)

Is there any way I retrieve the logcat from before the phone rebooted as the logcat seems to reset when the phone boots up.

Thanks in advance.

like image 592
stealthcopter Avatar asked Jul 29 '10 09:07

stealthcopter


1 Answers

Use http://code.google.com/p/acra/, which is a great lib to send crash reports to a google form incl. stack trace. I use it in my app and works nicely. Let me know if you have any difficulties implementing it. Read the http://code.google.com/p/acra/wiki/ACRAHowTo, it's easy to setup.

like image 164
Mathias Conradt Avatar answered Sep 27 '22 18:09

Mathias Conradt