Awwdroid is an android app that allows you to view images from Reddit's /r/aww .
You can find the app at the google play store: Link
Here's a description of the core classes and their responsabilities:
- MainActivity : Is the only activity of the app. It has a dynamic ViewPager that instantiates fragments.
- SingleImageFragment : Fragment that is referenced to a single image and handles that image visualization.
- FetchJSONTask: AsyncTask that calls methods on the RedditFetcher class.
- RedditFetcher : Handles the calls to Reddit's API.
- ImageEntry : Single Image representation.
The application is structured as follows: The following communication diagram explains how the communication between objects work:
The following sequence diagram explains how the RedditFetcher creates an ArrayList of ImageEntry objects calling the Reddit APIs: