values.put("value", notifications?1:0); this.mDB.update(PREFS_TABLE, values, "key=?", new String[] { "notifications" }); } public int getDBVersion() { return this.mDB.getVersion(); } public void close() { if (this.mDB.isOpen()) { this.mDB.close(); } } private static class DBOpenHelper extends SQLiteOpenHelper { private static final String CREATE_APPS = "CREATE TABLE IF NOT EXISTS " + APPS_TABLE + " (_id INTEGER, uid INTEGER, package TEXT, name TEXT, exec_uid INTEGER, " + "exec_cmd TEXT, allow INTEGER," + " PRIMARY KEY (_id), UNIQUE (uid,exec_uid,exec_cmd));";