31Browsing The Web & WebView

Each photo you get from Flickr has a page associated with it. In this chapter, you are going to make it so that users can press a photo in PhotoGallery to browse its photo page. You will learn two different ways to integrate web content into your apps. The first works with the device’s browser app, and the second uses the WebView class to display web content within PhotoGallery.

One Last Bit of Flickr Data

For both ways, you need to get the URL for a photo’s Flickr page. If you look at the XML you are currently receiving for each photo, you can see that the photo page is not part of those results.

<​p​h​o​t​o​ ​i​d​=​"​8​2​3​2​7​0​6​4​0​7​"​ ​o​w​n​e​r​=​"​7​0​4​9​0​2​9​3​@​N​0​3​"​ ​s​e​c​r​e​t​=​"​9​6​6​2​7​3​2​6​2​5​"​ ...

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.