Exemplo n.º 1
0
 /** Close the Database-Connection */
 public static void close() {
   dbHelper.close();
 }
Exemplo n.º 2
0
 /**
  * Initialize the Database and the preferences
  *
  * @param context The Application-Context
  */
 public static void init(final Context context) {
   dbHelper = new DatabaseHelper(context);
   database = dbHelper.getWritableDatabase();
 }