I want to know.
I have one external micro sd card in my tab.
I want to create a SQLite database inside my Micro sd card .
public static final String DATABASE_FILE_PATH = "/extSdCard";
I am giving my path of external micro sd card but error showing.
Unable to open Database
Is it possible to create Database in external Memory card?
update:-
public static final String DATABASE_FILE_PATH = "/extSdCard";
public static final String DATABASE_NAME = "mytest";
public SDcardDatabase(final Context context) {
super(context,DATABASE_FILE_PATH + DATABASE_NAME, null, 1);
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…