0

I created a database using android studio and view it through sqlite db. But in order to view my database i need to pull out from device file explorer. How can I save and view my database in actual device without pulling out from device file explorer, my android studio version is 3.5.

3
  • 4
    Possible duplicate of View contents of database file in Android Studio Commented Sep 21, 2019 at 5:28
  • I think Stetho library can help you. github.com/facebook/stetho Commented Sep 21, 2019 at 5:29
  • Though there are some applications you can download and view the data stored in the database, it is best to use Stetho library. For more details you can check this link Commented Sep 21, 2019 at 5:39

1 Answer 1

1

Follow below steps :

Device File Explorer > data > data > yourPackageName > databases > filename.db

After that :
1) Select the file.
2) Right click on it.
3) Choose save as and give it proper name and destination.

Note : You can only view the database file of your own application. And application debuggable mode is on.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.