error handling - unfortunately closed message customization in android -
i want own message should showed when app crashes or stopped working. or when app crashes,any other activity should displayed.in time intent should called
link
refer above link.
use defaultuncaughtexceptionhandler
public class yourapplication extends application { public void oncreate () { // setup handler uncaught exceptions. thread.setdefaultuncaughtexceptionhandler (new thread.uncaughtexceptionhandler() { @override public void uncaughtexception (thread thread, throwable e) { handleuncaughtexception (thread, e); } }); } public void handleuncaughtexception (thread thread, throwable e) { //create activity here. }
android error-handling user-customization
No comments:
Post a Comment