Advertisement
Guest User

Untitled

a guest
Jun 25th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. try {
  2. String myPath = DB_PATH + DB_NAME;
  3. checkDB = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READWRITE);
  4. } catch (SQLiteException e) {
  5. System.out.println(e);
  6. if (checkDB == null) {
  7. return false;
  8. }
  9. }
  10. if (checkDB != null) {
  11. checkDB.close();
  12. }
  13. return checkDB != null ? true : false;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement