0

I for the first time use RoomDB in my project. I have the next question: where does the database file store, after i created the next ?

AppDatabase db = Room.databaseBuilder(getApplicationContext(),
            AppDatabase.class, "database")
            .allowMainThreadQueries()
            .build();

P.S. Don`t pay attention on my mistakes.

1 Answers1

0

where does the database file store, after i created the next ?

Log.d("DB", "DB_Path: " + context.getDatabasePath("database"));

OutPut:
DB_Path: /data/user/0/{app.package.name}/databases/database
Khaled Lela
  • 7,831
  • 6
  • 45
  • 73