Android: Closing those database objects

Android applications based on the Notepadv3 tutorial are prone to a DatabaseObjectNotClosedException when they’re closed. Here’s how to prevent them.