Advertisement
Guest User

Untitled

a guest
Sep 9th, 2013
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. public static DatabaseHelper getInstance(Context ctx) {
  2.  
  3. if (mInstance == null) {
  4.  
  5. mInstance = new DatabaseHelper(ctx.getApplicationContext());
  6. }
  7. return mInstance;
  8. }
  9. public static void setDatabaseHelperNull(){
  10. mInstance = null;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement