Kjven/eece310_app — pull request #4 by Muserk (2014-03-20 03:22:50+00:00)
Title: Gavin

Re-structured the App, interfaced Scraper with Graphs, fixed some bugs with the Scraper, began writing some test cases.

To understood the data-flow:
The TideApplication class extends Application. It is used to store all global information (information that may need to be shared across multiple Activities).
TideApplication is being used to hold a reference to the current Activity, as well as current Graph View. By current, I mean the Activity that is in focus.
This allows the Scraper class to update the current activity without hardcoding anything.

In order to set the currentActivity and currentGraph, an abstract class superActivity exists. MainActivity, and any other Activity we add to the app, should now extend superActivity. superActivity gives each Activity a way to update the global variables.