Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. wv = (WebView) this.findViewById(R.id.wvtour);
  2. wv.loadUrl("https://roundme.com/tour/114616/view/");
  3. // Enable Javascript
  4. WebSettings webSettings = wv.getSettings();
  5. webSettings.setJavaScriptEnabled(true);
  6. // Force links and redirects to open in the WebView instead of in a browser
  7. wv.setWebViewClient(new WebViewClient());
  8.  
  9. String url="https://roundme.com/tour/114616/view/";
  10. wv =(WebView) this.findViewById(R.id.wvtour);
  11. wv.getSettings().setJavaScriptEnabled(true);
  12. wv.loadUrl(url);
  13.  
  14. Uri uri = Uri.parse("https://roundme.com/tour/114616/view/");
  15. Intent intent = new Intent(Intent.ACTION_VIEW, uri);
  16. startActivity(intent);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement