Where Room save database Android?

后端 未结 6 1887
借酒劲吻你
借酒劲吻你 2020-12-30 02:39

I am using Room library to save data in database.i want to get database.

used this code

  private void copyFile() {

        try {
            File s         


        
6条回答
  •  北荒
    北荒 (楼主)
    2020-12-30 03:25

    in Android Studio there is a section called "Device File Explorer", at the bottom right. In this section you can explore all the files (which you can not see in a simple file explorer app because you need to run the root).

    Make sure the emulator is the one you're working with. In this explorer you have to go to "data" -> "data", look for the package name of your app and the next step is to find "database" entry, in this folder there is your Room database.

提交回复
热议问题