Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- String myPath = DB_PATH + DB_NAME;
- checkDB = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READWRITE);
- } catch (SQLiteException e) {
- System.out.println(e);
- if (checkDB == null) {
- return false;
- }
- }
- if (checkDB != null) {
- checkDB.close();
- }
- return checkDB != null ? true : false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement