7.8 Wrap-Up

In this chapter, you built the WeatherViewer app, which used OpenWeatherMap.org web services to obtain a city’s 16-day weather forecast and display it in a ListView. We discussed the architectural style for implementing web services known as REST (Representational State Transfer). You learned that apps use web standards, such as HyperText Transfer Protocol (HTTP), to invoke RESTful web services and receive their responses.

The OpenWeatherMap.org web service used in this app returned the forecast as a String in JavaScript Object Notation (JSON) format. You learned that JSON is a text-based format in which objects are represented as collections of name/value pairs. You used the classes JSONObject and JSONArray from the org.json package ...

Get Android How to Program, 3/e now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.