1

I found the emulator is online in Android Device Monitor. But the data folder seems to be empty and could not find any database file in it.

Since I could retrieve the data inside the database to the U I, I'm sure that the SQLite database is created.

  • So how can I get the database file resides in the emulator?

I'm working on Android Studio 2.2.3 and using the API 23(Marshmallow). I had referred to this link ,but couldn't find the right answer

Michel
  • 1,085
  • 13
  • 24

1 Answers1

0
  1. First check whether you've created any database for project or not. Obviously you don't see any db file if you don't have a DB module in your app. User SQLiteOpenHelper or ContentProvider to create a SB for your project.

  2. Once you create a DB in your project, extracting db file should be simple. Use FileManager in DDMS or Android Device manager and manually go to your project data folder and pull file into your computer.

This should help.

albeee
  • 1,452
  • 1
  • 12
  • 20
  • I had already created a Databasehelper class extends from SqliteOpenHelper.But the data folder is seem to void in DDMS.Is there a way to check whether my database is created? – Michel Mar 15 '17 at 04:14
  • Please share the code. I can tell you what's wrong in it – albeee Mar 15 '17 at 09:59
  • I could display the details from database to my activity and it works fine.So it is confirmed that the database had created.The problem is, I couldn't find the actual database file in Android Device Monitor – Michel Mar 15 '17 at 11:18