I have Webviewto display some html data in my application. I am using the following code.
WebView featureview = (WebView) findViewById(R.id.featureview);
WebSettings webSettings = featureview.getSettings();
webSettings.setJavaScriptEnabled(true);
featureview.loadData(featureDescription, "text/html", "utf-8");
Some of the html data has embedded video from youtube using type code <iframe height='390' frameborder='0' width='640' allowfullscreen='' src='http://www.youtube.com/embed/8xgkw67o0Gc' title='YouTube video player'></iframe>. But he gives a black screen. what is the problem in the code? Here, I like to add that I installed a flash player, and I'm trying to use it on an Android 2.2 device.
source
share