Due: Friday May 15, 23:59pm
CrowdGrader URL: https://www.crowdgrader.org/crowdgrader/venues/view_venue/1080
We are going to build a simple newspaper reading app.
Your application should consist of two activities.
Main Activity: In the main activity, you should offer the choice of which newspaper to read. To keep things simple, we are not going to read the list of newspapers from a server; we will just hardwire them in. Offer the following choices with the following URLs:
When you click on one such choice, you go to the second Reader Activity, where you will be able to read the chosen newspaper.
Reader Activity: The screen should contain a WebView displaying the newspaper, and at the bottom right, a button that says (or has an icon) "share".
The WebView should enable you to navigate in the chosen newspaper. If the user clicks on a link that leads out of the newspaper (as determined by the domain.com portion, i.e., the last two dot-separated components of the URL), you should launch an Action.VIEW to have that displayed using the regular browser.
If the user clicks on Share, you should trigger an Action.SEND to enable sharing that URL with whatever methods one has (e.g., SMS, Email, Facebook, etc, the list will be populated automatically).
The Back button should navigate back in the WebView browser history as long as that is possible, and when there is no longer history, it should lead back to the Main Activity.
Look at the slides and sample code I provide. It should give you concrete examples for how to do all that is required here.