Week 13
Started the Weather application.
jSoup
How to use external JARs in an Android project.
How to attach javadoc or sources to jars in libs folder.
Add the following permission to the manifest file:
android.permission.INTERNET
and start a new thread.
National Oceanic and Atmospheric Organization NOAA
runOnUiThread to pass data from thread to UI
Drawing on an imageView
Assignment Weather app: 10 pts total
- Replace canvas.drawArc with canvas.drawLine. You will need to convert from polar to rectagular coordinates to do this. 4 pts
- Use canvas.drawText to display the humidity value on the gauge somewhere (bottom of gauge would be good). 1pt
- Retrieve the actual relative humidity value from NOAA. You will have to do some experimentation with jSoup and perhaps other methods to parse the value from the HTML document. 5pts
|