-
Notifications
You must be signed in to change notification settings - Fork 12
Basic WebView usage
rutura edited this page Apr 16, 2017
·
2 revisions
- Quick Code
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
WebView webview = new WebView(this);
//Enable JavaScript support
webview.getSettings().setJavaScriptEnabled(true);
webview.loadUrl("http://www.imiziki.com/");
setContentView(webview);
}
- Enable Javascript as shown in the snippet for better user experience
- Load in the URL.(This one is obvious isn't it...
- Relevant Files:
- Direct link to app: