Play a youtube url in android
问题 I have a fragment and a videoview is present inside that fragment.I have a you tube url for video. I tried videoview as well as webview. But it is not working. How i should play that video inside that layout? 回答1: Just use normal a webview and everything will be fine. Try this : ( Tested and works ) new Thread(new Runnable() { @Override public void run() { final WebView myWebView = (WebView) findViewById(R.id.webView1); myWebView.setWebViewClient(new WebViewClient()); myWebView.getSettings()