O'Reilly logo

Android™ How to Program, Third Edition by Harvey M. Deitel, Paul Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

7. WeatherViewer App

Objectives

In this chapter you’ll:

Image Use the free OpenWeatherMap.org REST web services to get a 16-day weather forecast for a city specified by the user.

Image Use an AsyncTask and an HttpUrlConnection to invoke a REST web service or to download an image in a separate thread and deliver results to the GUI thread.

Image Process a JSON response using package org.json classes JSONObjects and JSONArrays.

Define an ArrayAdapter that specifies ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required