Iroid wrote:
> Here is my Code :
> Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler
> ()  {
> 
> 
>       @Override
>              public void uncaughtException(Thread thread, Throwable
> exc){
>       cThread = thread;
>       cThrowable = exc;
>       runOnUiThread(new Runnable() {
>       @Override
>       public void run() {
>       showDialog(UNCAUGHT_ERROR);
>       }
>       });
> 
>       }
>       });
> 
> Contorl never goes to oncreatedialog(). the above lines of code I have
> put in oncreate() of an activity.
> Am I missing any thing?

Rather than a managed dialog, try just using AlertDialog.Builder.

> Once this is sovled then next question I have is
> How could I force close the application?

If your goal is to test this code, divide 1 by 0, or otherwise generate
a RuntimeException.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_The Busy Coders' Guide to *Advanced* Android Development_ In Print!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to