This is an Android example on how to use the StorageRoom API ( http://storageroomapp.com ) provided by Till Simon.
Find the code for the actual JSON parsing from the StorageRoom API in
- model / webconnect / RestaurantsDownloader.java -> downloadRestaurants() { ... }
- model / webconnect / AnnouncementsDownloader.java -> downloadAnnouncements() { ... }
To get Google Maps working on your device, insert your own Google Maps API Key in res/layout/restaurantsmap.xml !
Restaurant data and simple announcements are loaded from the StorageRoom CMS via the provided JSON-API. Data is saved locally in a SQLite database and displayed in a Activity with a ListView and a Activity with a MapView. Details can be accessed in a seperate activity. The images in the ListView and in the DetailsView are downloaded in the background and cached locally for the application life-time.
This example is kept simple on purpose and focuses on the downloading and parsing of the JSON data.
Till Simon
If you discover any bugs, please create an issue on GitHub
MIT License
Copyright © 2011 Till Simon
mail@tillsimon.com


