tags:

views:

131

answers:

2

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.

A: 

Try to open a terminal/command prompt and issue this in it :
adb -d logcat
This should dump you a live version of the logcat you could read to find the problem

Sephy
Sorry if I didn't make it clear in the question, but this isn't possible as I don't want to carry my computer around with me constantly until it crashes :PWas just hoping there was a way of saving logcat to sd or something.
stealthcopter
A: 

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.

Mathias Lin