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
DataManager
class to handle our database, including a selection of helper methods to make the appropriate queriesEnabling the saving of photos into the database from the
FragmentCapture
classCoding an interface to handle communications
Coding
TagsFragment
to show a list of tags and sending a tag toMainActivity
when one is clickedCoding
TitlesFragment
to show a list of titles either based upon a specific tag or the entirety ofwis_tables_photos
Coding the
MainActivity
class 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.