Chapter 24. Adding a Database to Where It's Snap
In this chapter, we will be entirely focused on using all we know about fragments, interfaces, and SQLite in order to add significant functionality to Where it's Snap.
We will cover the following tasks:
- Building a new class to represent a photo
 - Creating a 
DataManagerclass to handle our database, including a selection of helper methods to make the appropriate queries - Enabling the saving of photos into the database from the 
FragmentCaptureclass - Coding an interface to handle communications
 - Coding 
TagsFragmentto show a list of tags and sending a tag toMainActivitywhen one is clicked - Coding 
TitlesFragmentto show a list of titles either based upon a specific tag or the entirety ofwis_tables_photos - Coding the 
MainActivityclass to handle the communications of the fragments via the interface 
As usual, the files for all of the above are in the download bundle in the Chapter 24/Where Its Snap 3 folder.