Movies Database
Viewing the Database
You can use the App Inspector in Android Studio to view the database on the emulator or physical device.
- Run your application
- Open App Inspection
- via the "..." on the left edge of Android Studio, or
- via View -> Tool Windows -> App Inspection from the hamburger menu at the top-left of Android Studio
- You may need to wait a moment for the running devices dropdown to appear
- Click on the running devices dropdown
- Choose the emulator or physical device that's running your application
- Choose the application that matches the app id in your app/build.gradle.kts
- Click on the Database Inspector tab
- You can then double-click table names to see data or run SQL queries
We'll stop here for now and flesh this example out more over time.
We'll fill in all of the details for displaying Movies
, Actors
and Ratings
in a later module, after we've discussed lists.