Fetching XML From Flickr

Flickr offers a fine XML 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 then find the list of Request Formats. You will be using the simplest – REST. This tells us that the API endpoint is http://api.flickr.com/services/rest/. You can invoke the methods Flickr provides on this endpoint.

Back on the main page of the API documentation, find the list of API Methods. Scroll down to the photos section and locate flickr.photos.getRecent. Click on flickr.photos.getRecent, and the documentation will report that this method Returns a list of the latest public photos uploaded to flickr. That is exactly what you need for PhotoGallery. ...

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