Problem showing profile Roundme in Webview Android Studio

1

Hello good afternoon friends, today I would like to ask you please to help me solve this case, I am trying to show the photographic journey of the university, in the social network of 360 degree Roundme photographs, I have done it in three ways but it only works for me using the browser of the mobile device, in the WebView container it just goes blank; I do not know if it is possible that this "Roundme" page does not allow to put its content in WebView, since when I change the URL for another, everything works fine.

In the following code the WebView remains blank, it does not load content, it does not generate an error either.

    wv = (WebView) this.findViewById(R.id.wvtour);
    wv.loadUrl("https://roundme.com/tour/114616/view/");
    // Enable Javascript
    WebSettings webSettings = wv.getSettings();
    webSettings.setJavaScriptEnabled(true);
    // Force links and redirects to open in the WebView instead of in a browser
    wv.setWebViewClient(new WebViewClient());

In the following code the same thing happens to me, it shows the content in white and it does not generate an error either.

    String url="https://roundme.com/tour/114616/view/";
    wv =(WebView) this.findViewById(R.id.wvtour);
    wv.getSettings().setJavaScriptEnabled(true);
    wv.loadUrl(url);

And with the following code, it shows the photographic path using the default browser on the device.

    Uri uri = Uri.parse("https://roundme.com/tour/114616/view/");
    Intent intent = new Intent(Intent.ACTION_VIEW, uri);
    startActivity(intent);

Thank you very much for your help.

    
asked by Ivan Alfredo 26.09.2017 в 00:14
source

1 answer

1

When you perform the Intent and open the device's browser you can see the page without a problem as opposed to using the WebView , the reason is that the WebView is a limited browser that does not have all the Chrome features, and does not support all javascript objects.

Even the page you comment uses Adobe Flash Player that is not supported.

The option in this case is to open the url in the external browser:

Uri uri = Uri.parse("https://roundme.com/tour/114616/view/");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
    
answered by 26.09.2017 / 01:00
source