This application pulls and displays the various Hello World locations across the United States, providing some actions such as navigation and calling, along with detailed location information.
Before this app can be used, the developer must receive a Google Maps API key and put it in a string resource, or else run the .apk file found in app/build/outputs/apk/
folder.
The main Activity shows both a map of all five hello world locations as well as a list of them underneath. If permission for locations has been granted, the list will be sorted by distance from the user. Otherwise, it is sorted alphabetically.
Whenever an office item is clicked from the ListView on the main screen, a DialogFragment appears that has an image, detailed information, and actions to navigate to or call the location.
A gif of the call button in action can be seen here:
Ways this could be further enhanced if I had more time are:
- A SyncAdapter that updated the database at a regularly scheduled interval.
- Testing of the ContentProvider, and other unit tests.
- A faster way to load the office image on the detail fragment, instead of using an AsyncTask.
- An option to switch between km and mi.
- Verify user's location before navigating