Join David Gassner for an in-depth discussion in this video Managing the database with a content provider, part of Building a Note-Taking App for Android.
- My database OpenHelper class defines…the database structure and creates…the database in persistent storage.…But now, I have to provide access to the database…to the rest of the application.…And for that, I'll use a content provider.…The content provider interface creates a standardized…mechanism for getting to the application's data,…regardless of whether it's SQLite database, JSON text,…or any other kinds of structured data.…The content provider interface has methods…for inserting, updating, and deleting data,…and querying it.…
I'm working in a project named ContentProvider.…You can either open this project or you can keep working…from where the last project left off.…I'll go to my main package in the Java folder,…and create another new Java class.…And, I'll name it NotesProvider.…I'll get rid of the initial comment.…And then, this class will extend the class ContentProvider…from the Android.content package.…I need to implement a bunch of methods.…
I'll use a quick fix and choose Implement Methods…and I'll select all of them.…
Building a Note-Taking App for iOS 8 and Building a Note-Taking App for Windows Phone 8 and Windows Store use the same assets to develop a similar app. Compare and contrast the steps and discover the similarities and differences between the three platforms.
- Understanding Android UI and data management patterns
- Creating an Android Studio project
- Customizing material design theme colors
- Defining an SQLite database structure
- Managing data with ContentProvider and Loader classes
- Retrieving and displaying data
- Customizing data display with a CursorAdapter
- Creating, updating, and deleting notes
- Preparing the app for deployment