Working with Databases

In the previous chapter, we obtained crucial permissions needed to access Android system features. In our case, we obtained location permissions. In this chapter, we will move on by inserting data into the database. We will insert location data that we will get from Android's location provider. For that purpose, we will define proper database schema and management classes. We will also define classes to access the location provider to obtain location data.

In this chapter, we will cover the following topics:

  • Introduction to SQLite
  • Describing database
  • CRUD operations

Get Mastering Android Development with Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.