Home » Android » Detect android application crash force close

Detect android application crash force close

Posted by: admin June 15, 2020 Leave a comment


I am writing an crash report application which will run as a service in background and should be able to detect other application crash, and present a user will option to report error.

So, which event should I be looking for in order to detect application crash?

ActivityManager.ProcessErrorStateInfo() class basically provides error condition. Can I use this?

How to&Answers:

Check out Crittercism. It automatically captures crashes and diagnostics for you and it’s free I think.


Do you mean something like this:

        Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler() {

            public void uncaughtException(Thread t, Throwable e) {
                // TODO implement this



You might check out the ACRA application.

It’s an Apache-licensed Android crash reporter. I don’t think it will help you detect crashes in other applications. Incidentally, I’m not sure this is even possible.