I am using Room library to save data in database.i want to get database.
used this code
private void copyFile() {
try {
File s
static final String DATABASE_NAME = "photex_db";
Here, you are trying to open photoex_db
.
String currentDBPath=getDatabasePath("photex_db.db").getAbsolutePath();
Here, you are trying to read from photex_db.db
.
These are not the same.
You might consider using DATABASE_NAME
consistently, rather than only in some places.