Android Programming: The Big Nerd Ranch Guide, 2nd Edition
by Bill Phillips, Chris Stewart, Brian Hardy, Kristin Marsicano
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 http://json.org.
Flickr offers a fine JSON API. All the details you need are available in the documentation at http://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/ ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access