Book Image

Android SQLite Essentials

By : Sunny Kumar Aditya, Vikash Kumar Karn
Book Image

Android SQLite Essentials

By: Sunny Kumar Aditya, Vikash Kumar Karn

Overview of this book

<p>SQLite is an open source relational database management system. Android uses the SQLite database to store and retrieve data persistently. The driving force behind the platform is the database, enabling a myriad of choices for developers making cutting-edge applications.</p> <p>Android SQLite Essentials focuses on the core concepts behind building database-driven applications. This book covers the basic and advanced topics with equivalent simplicity and detail, in order to enable readers to quickly grasp and implement the concepts to build an application database.</p> <p>This book takes a hands-on, example-based approach to help readers understand the core topics of SQLite and Android database-driven applications. This book focuses on providing you with latent as well as widespread knowledge about practices and approaches towards development in an easily understandable manner.</p>
Table of Contents (11 chapters)

Chapter 3. Sharing is Caring

 

"Data really powers everything that we do."

 
 --– Jeff Weiner, LinkedIn

In the last chapter, we started programming our very own contact manager. We came across various building blocks of a database-centric application; we covered database handlers and building queries in order to get meaningful data from our database. We also explored how to make a connection between our UI and database and present it in a consumable manner for the end user.

In this chapter, we will learn how to access other application's data via means of content providers. We will also learn how to build our very own content provider in order to share our data with other applications. We will look into Android's providers such as contactprovider. To wrap things up, we will construct a test application to use our newly constructed content provider.

In this chapter, we will cover the following topics:

  • What is a content provider?

  • Creating a content provider

  • Implementing the core methods

  • Using a content...