Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public class MyDatabaseHelper extends SQLiteOpenHelper {
  2.  
  3. // FILE_DIR your app folder on sdcard, say my_app
  4. // DATABASE_NAME whatever file name you chose, say db.sqlite
  5. // DATABASE_VERSION
  6. public MyDatabaseHelper(Context context) {
  7. super(context, Environment.getExternalStorageDirectory()
  8. + File.separator + FILE_DIR
  9. + File.separator + DATABASE_NAME, null, DATABASE_VERSION);
  10. }
  11. .
  12. .
  13. .
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement