Weather API Lab
Use weather.zip or
http://www.lasalle.edu/~blum/c349wks/weather.html
to access the Open Weather API. The resulting JSON file contains a 5-day weather forecast for
Philadelphia. Parse the information and place the information into a ListView. The items in the ListView should have at least
an ImageView and a TextView. (See
http://www.mkyong.com/android/android-listview-example/
for how to make a ListView that includes an ImageView.)
The JSON file has a list property which is an array.
An element of that array has a weather object property.
The weather object has description and icon properties. Your ListView
should minimally show the icon and the description for the five days.
If the icon is 02d, then the image is located at
http://openweathermap.org/img/w/02d.png, use our code for loading an image from a URL.
If you want to display temperatures in Fahrenheit you first have to convert the Kelvin to Celsius by
subtracting 273.15. And then multiply the resulting Celsius temperature by 9/5 and add 32.
For example 291.57 Kelvin --> 18.42 Celsius --> 65.156 Fahrenheit.
Screen captures of code and interface Due: Apr. 8
Thursday:
Android manifest for Google Map App
Look through the following tutorial
Google Maps Android API V2:
Android Programming, go as far as the Manifest -- which requires getting the API key and setting
up the permissions. Send a screen capture of the Android Manifest.