Using Web Content

To launch an Internet browser to display web content, the implicit intent action_view can be used as discussed in Chapter 2,"Application Basics:Activities and Intents," for example:

Intent i = new Intent(Intent.ACTION_VIEW);

i.setData(Uri.parse("http://www.google.com"));

startActivity(i);

It is also possible for developers to create their own web browser by using Webview, which is a View that displays web content.As with any view, it can occupy the full screen or only a portion of the layout in an activity. Webview uses WebKit, the open source browser engine used in Apple's Safari, to render web pages.

Character Building Thought Power

Character Building Thought Power

Character-Building Thought Power by Ralph Waldo Trine. Ralph draws a distinct line between bad and good habits. In this book, every effort is made by the writer to explain what comprises good habits and why every one needs it early in life. It draws the conclusion that habits nurtured in early life concretize into impulses in future for the good or bad of the subject.

Get My Free Ebook


Post a comment