title: How can I clear my database when the application is closed?
body: <p>I need to clear application's database (drop all tables) after closing the application. I decided to implement this in some Activity's onDestroy(). As far as I know all onDestroy() methods are called when application finished running.<p>But if this is a bad practice - please advise some other way of clearing database when application is closed.</p>