Fetching JSON from Flickr

JSON stands for JavaScript Object Notation, a format that has become popular in recent years, particularly for web services. Android includes the standard org.json package, which has classes that provide simple access to creating and parsing JSON text. The Android developer documentation has information about org.json, and you can get more information about JSON as a format at json.org.

Flickr offers a fine JSON API. All the details you need are available in the documentation at www.flickr.com/​services/​api/. Pull it up in your favorite web browser and find the list of Request Formats. You will be using the simplest – REST. This tells you that the API endpoint is https://​api.flickr.com/​services/​rest/ ...

Get Android Programming: The Big Nerd Ranch Guide, Third Edition 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.