Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String LocalFile = "file:///android_asset/sports.htm";
- WebView webView = (WebView) findViewById(R.id.vidwebview);
- WebSettings webSettings = webView.getSettings();
- webSettings.setJavaScriptEnabled(true);
- webSettings.setPluginsEnabled(true);
- webSettings.setLoadWithOverviewMode(true);
- webSettings.setUseWideViewPort(true);
- webSettings.setAllowFileAccess(true);
- webView.setBackgroundColor(Color.BLACK);
- webView.setVerticalScrollBarEnabled(false);
- webView.setHorizontalScrollBarEnabled(false);
- webView.loadUrl(LocalFile);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement