Android Programming: The Big Nerd Ranch Guide, 5th Edition
by Bryan Sills, Brian Gardner, Kristin Marsicano, Chris Stewart
WebView vs a Custom UI
So there you have two ways to handle opening a photo’s Flickr page from your app. There is, of course, a third option: You could create a custom UI to display the photo and its description.
A UI built natively (without WebView) would give you full control over how your app looks and behaves. Also, native UIs often feel more responsive and consistent to users. But there are a number of advantages to displaying web content instead of rolling out your own custom UI.
Displaying Flickr’s site in a WebView lets you integrate a large feature much more quickly. You do not need to worry about fetching image descriptions, user account names, or other photo metadata to build out this UI. You can simply leverage what Flickr ...
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