How do I create crash log when the Android process crashes

911 views Asked by At

My Java code will invoke native code. When the native code crashes, I want to write the crash log to my own file. How can I achieve this? I have used ACRA, but it won't work for native code. Thanks very much.

1

There are 1 answers

0
THelper On

A comment from an ACRA developer found here

Comment by project member kevin.gaudin, Dec 16, 2010

Ok, I don't think we can do anything to catch native crashes if they don't result in a Java Exception.

In a future release, I'm planning to add an option to (optionaly) upload a short logcat extract + DropBoxManager? system items. This should allow to get some of these traces, but only if an exception triggers the report... or if you detect an unexpected state and trigger a report yourself.

However, you might be able to use this solution