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 -

java - Jtable duplicate Rows -

java - Run a .jar on Heroku -