Task 1. Download and run the base code

Task 2. Add a Contract class to WordListSQLInteractive

2.1 Add a Contract class

2.2 Move database constants into Contract

2.3 Define URI Constants

2.4 Declare the MIME types

Task 3. Create a Content Provider

3.1 Create a WordListContentProvider class

3.2 Implement WordListContentProvider.query()

3.3 Fix WordListOpenHelper.query() to return a Cursor and handle returning all items

 

3.4 Fix WordListOpenHelper.count() to return a Cursor

3.5 Fix WordListAdapter.onBindViewHolder() to use a content resolver

3.6 Change WordListAdapter.getItemCount() to use a content resolver

3.7 Add the content provider to the Android Manifest

3.8 What’s next?

Task 4. Implement Content Provider methods

4.1 getType()

4.2 Call the content provider to insert and update words in MainActivity

4.3 Implement insert() in the content provider

4.4 Fix insert() in WordListOpenHelper

4.5 Implement update() in the content provider

4.6 Implement delete() in the content provider

4.7 Run your app