O'Reilly logo

Android NDK Game Development Cookbook by Viktor Latypov, Sergey Kosarevsky

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

Downloading images from Flickr and Picasa

We have a list of images in the XML format, which we downloaded in the Fetching lists of photos from Flickr and Picasa recipe. Let's download the actual photos from the photo hosting.

Getting ready

Here, we need the image list from Flickr or Picasa to get started. Use the previous recipe to download that list.

How to do it…

  1. Once we have retrieved the list, we extract individual image IDs from it. Having these IDs allows us to form the URLs for individual images. Flickr uses a complicated image URL formation process and Picasa stores the URLs directly. Both services can generate responses in XML and JSON formats. We will show you how to parse XML responses using our tiny ad hoc parser. However, if you already ...

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