How to View and Locate Realm Database in Android Studio?
Realm’s mobile database is an open-source, developer-friendly alternative to CoreData and SQLite. Realm Database is a service which is provided by MongoDb which is used to store data in users device locally. With the help of this data can be stored easily in users’ devices and can be accessed easily. We can use this database to store data in the user’s device itself. In this article, we will take a look at viewing and locating Realm Database in Android Studio.
Step by Step Procedures
Step 1: Open android studio project which has Realm database connection
Open existing android studio project which has connected to Realm database and already having some saved records.
Step 2: Connect a device
Connect external device or emulator with android studio make sure the name of the device must be shown on android studio screen.
Step 3: Go to the View > Tool Windows > Device File Explorer as shown in the below image.
Step 4: Open your device file explorer then go to the data > data as shown in the below image.
Step 5: Inside the data folder search for your package name > files and Save As default.realm file as shown in the below image.
Step 6: Download Realm Studio
Now to view the database we required Realm Studio, you can download Realm Studio from https://docs.realm.io/sync/realm-studio/. Download a suitable Realm Studio for your device from the above link and open it.
Step 7: After successfully installed Realm Studio open it and open the Realm file in Realm Studio.
And you can see how data stored in the database as shown in the below image.