This exception occurs when we try to create a View when the Activity that 
holds the view has already exited. I used dialog boxes in my activity, and 
sometimes when I abruptly exit the activity by pressing onKey down , this 
exception was thrown. Actually, I clicked on a button that shows a dialog 
box but before the dialog could appear/dismiss, I exited the activity. 
Hence, the solution is this is to dismiss all the dialog boxes /views if 
they are active in the onDestroy() method . It a very good practice to use 
onDestroy() to release all the resources used in the activity and to call 
the garbage collector for clean up.

Refer here for the complete code 
http://www.creatiosoft.com/forum/showthread.php?tid=137

-- 
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