Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public NotesDbAdapter(Context ctx) {
- this.mCtx = ctx;
- }
- public NotesDbAdapter open() throws SQLException {
- mDbHelper = new DatabaseHelper(mCtx);
- mDb = mDbHelper.getWritableDatabase();
- return this;
- }
- public void close() {
- mDbHelper.close();
- }
Add Comment
Please, Sign In to add comment