Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to modify style of android "force close" window?

Does anybody know how to modify the style of the "force close" window (FC dialog)? I found a custom ROM with a nice picture at the dialog. At what place can I find the popup?

like image 656
neverchange Avatar asked Dec 24 '12 11:12

neverchange


1 Answers

Try to override uncaughtException,

@Override
public void uncaughtException(Thread thread, Throwable e) {
e.printStackTrace();    

   try {    

      // create your custom dialog
      displayErrorMessageToast();

      Thread.sleep(3500);    
   } catch (Exception e1) {    
      Log.e(TAG, "Error: ", e1);    
   } 
   finally 
   {    
      killApplicationProcess(e);    
   }
}

for more info: https://groups.google.com/forum/?fromgroups=#!topic/android-developers/2iUH1Knz8gw

like image 78
Talha Avatar answered Oct 31 '22 05:10

Talha