How to call a web page from android without exiting the app -


i'm new in android need call web page app without exiting try code:

intent intent = new intent(intent.action_view); intent.setdata(uri.parse("http://www.google.es")); activity.startactivity(intent); 

and doesn't work.

thank help!!!

in xml layout file, use webview

<webview  xmlns:android="http://schemas.android.com/apk/res/android"     android:id="@+id/webview1"     android:layout_width="fill_parent"     android:layout_height="fill_parent" /> 

Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

tags - Jquery Mixitup plugin help prevent handlers being destroyed -

c# - Delving into the world of XML (Windows Phone) Error I dont understand (The ' ' character, hexadecimal value 0x20, cannot be included in a name.) -