https://github.com/codepath/android-earthquake-monitor-exercise
Earthquake Monitor Starter Code
https://github.com/codepath/android-earthquake-monitor-exercise
Last synced: about 2 months ago
JSON representation
Earthquake Monitor Starter Code
- Host: GitHub
- URL: https://github.com/codepath/android-earthquake-monitor-exercise
- Owner: codepath
- Created: 2015-07-05T03:34:09.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-24T22:02:27.000Z (over 9 years ago)
- Last Synced: 2023-07-14T20:20:23.959Z (almost 2 years ago)
- Language: Java
- Homepage: http://codepath.com
- Size: 250 KB
- Stars: 8
- Watchers: 17
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Earthquake Monitor
## Overview
Adroid app to monitor earthquakes registered in the last hour by leveraging the API provided by [earthquake.usgs.gov site](http://earthquake.usgs.gov/). The app will plot locations of earthquakes on a map. It will also automatically update the map when a new earthquake takes place with the use of an `IntentService`.
To achieve this, we'll be performing the following steps:
* The app periodically runs an `IntentService` to get the latest earthquake data from the server.
* It then sends this data to the activity through a `Broadcast`.
* The callback in the activity saves this json data in `SharedPreferences`.
* To plot real time earthquake locations, the activity implements a `SharedPreferences.OnSharedPreferenceChangeListener` which then updates the markers on the map.## Usage
This app is intended to be the base project on top of which new features can be added. To use it, clone the project and import it using the following steps:
Once you have imported base app, go ahead and run it, and you should see the following output :
Now we will go ahead and implement the exercise. At the end of exercise, final output will be
