View BD Sqlite on Android Device Monitor

Asked

Viewed 1,143 times

1

I’m trying to view my BD Sqlite on Android Device Monitor, but in the folder data, I don’t see any files to export and so I can’t see my BD.

inserir a descrição da imagem aqui

What could I be doing wrong?

  • Add your database creation code to your app.

  • @Diegofelipe, to what extent is q the problem there? The app works well and the BD too...

  • To see how you are creating the BD, if you are giving some specific path when creating it.

1 answer

1


Only the contents of the folder can be accessed Data if the device be an emulator*.

The comic book is located in:

data > date > your-package-name > Databases > your-database-file.

The reason why subdirectories do not appear in the folder Data is the adb not having permission to read its contents.

If you’re using Android Studio 3.0 or later use Device File Explorer.
With it you can see all the contents of the folder Data, provided that the device is an emulator.

Look at this reply and/or the documentation for more details.

*Or "Rooted device"

  • Thank you! And how can I do it? Is there any way?

  • So the question is poorly elaborated, because in print, the date folder has no subdirectories. But the answer is really correct.

  • @Diegofelipe does not have/appear subdirectories because the adb you are not allowed to read the contents of the folder

  • Strange, here at the eclipse when I was messing with the development of an app, it would normally appear on the AVD Monitor.

  • Personal aceder was added from the grammatical agreement? : ) Meaning to access?

  • 1

    @rubStackOverflow According to this dictionary, means having access.

Show 2 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.