If I load http://www.youtube.com url on a webview and select any video, doesn’t trigger new window with player. Should I set something for it on manifest? If I use standard browser works! Event shouldOverrideUrlLoading or any other are not fired. Thank you
webviewA.getSettings().setJavaScriptEnabled(true);
webviewA.getSettings().setUseWideViewPort(true);
webviewA.getSettings().setLoadWithOverviewMode(true);
webviewA.getSettings().setDomStorageEnabled(true);
webviewA.getSettings().setAllowFileAccess(true);
webviewA.getSettings().setGeolocationEnabled(true);
webviewA.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
webviewA.getSettings().setBuiltInZoomControls(true);
webviewA.getSettings().setSupportZoom(true);
webviewA.getSettings().setPluginState(PluginState.ON);
webviewA.getSettings().setAllowContentAccess(true);
webviewA.setVerticalScrollBarEnabled(false);
webviewA.setHorizontalScrollBarEnabled(false);
webviewA.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);
if (savedInstanceState == null){
String Url = "www.youtube.com/my-desired_channel";
webviewA.loadUrl(Url);
}
event not fired,
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url){
not fired!!
}
You could use something like –
EDIT: Try this