Morton
Morton

Reputation: 5760

How to find sqlite file on Android simulator?

I want to find Android Device Monitor on my Android Studio to open my sqlite file, but I can't find Android Device Monitor. enter image description here

I find official document says that has been depreciated. https://developer.android.com/studio/profile/monitor

But I still can't find the way how to open my sqlite file on the android simulator.

My Android Studio version is 3.1.4

Any help would be appreciated. Thanks in advance.

Upvotes: 0

Views: 294

Answers (3)

Sasi Kumar
Sasi Kumar

Reputation: 13288

Click View > Tool Windows > Device File Explorer or click the Device File Explorer button in the tool window bar to open the Device File Explorer.

Select a device from the drop down list.

Interact with the device content in the file explorer window.

Right-click on a file or directory to create a new file or directory, save the selected file or directory to your machine, upload, delete, or synchronize. Double-click a file to open it in Android Studio

database path is commonly .../data/data/packagename/databases/

enter image description here

Upvotes: 1

Faiz Mir
Faiz Mir

Reputation: 609

In Android 3.1.1 At Right side corner you have a tab called Device File Explorer In That go to data/data find your application package name in tha folder will be there name database there you will find sqlite file.

My Android Studio View

Upvotes: 1

Vir Rajpurohit
Vir Rajpurohit

Reputation: 1927

You will find "DEVICE FILE EXPLORER" refer screen shot below enter image description here

Choose Data->Data->YOUR PROJECT PACKAGE NAME->databases

You will find your .db/.sqlite file there

Upvotes: 1

Related Questions