Share the post "How To Fix The Leaked Window Exception In Android"
This one is fairly easy. The common cause for this is when you have a Dialog popup that shows itself whenever the user quits the app.
This happens when you call finish() to close the Activity without closing the Dialog object.
Make sure you call dismiss() first before finish().