1

Android/SQLite right way to open/close db?

view story
linux-howto

http://stackoverflow.com – Im a bit new to OOP so i want to know if im doing things correctly. For communication with database i have created a class SQLiteHelper witch does all the usual stuff (onCreate, onUpdate) and also opens and closes connection. Here is the class, at the moment it has just on table but more will be added: public class SQLiteHelper extends SQLiteOpenHelper{ public static final String DATABASE_NAME = "notebook"; public static final int DATABASE_VERSION = 2; public static final String TABLE_LIST = "list"; public static final String TABLE_LIST_ID = "_id"; public static final St (HowTos)