Mobile ICP3 - abndnc/CS5590-0003 GitHub Wiki
Earthquake Info App: Create a mobile application with the following requirements.
1.The main activity should be a list of earthquakes with information
2.On clicking any item Earthquake, the user must be directed to the webpage of USGS which contains further information about the earthquake in the web browser.
3.Follow all the three TODO instructions in the QueryUtils.java file and two more TODO instructions in the EarthquakeActivity.java file and AndroidManifest.xml to complete the functionality
Implementation:
TODO: 1. Create a URL from the requestUrl string and make a GET request to it
TODO: 2. Read from the Url Connection and store it as a string
TODO: 3. Parse the jsonResponse string obtained in step 2 above into JSONObject to extract the values of "mag","place","time","url" for every earth quake and create corresponding Earthquake objects with them. Add each earthquake object to the list(earthquakes) and return it.
TODO: 4. Create a new intent to view the earthquake URI.Send the intent to launch a new activity
TODO 5: Add internet permission
Output: