Issue
How do I can open this URL using webview in Android?
Solution
XML WebView element in layout.
<WebView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
And then just do the following.
// ......
final String url = "<your link text>"
// ......
final WebView browser = (WebView) findViewById(R.id.webview);
browser.loadUrl(url );
// ......
Answered By - GensaGames
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.