Flash video not displaying in WebView for Android 3.0.1

Solution 1:

So after a week and a half+ of searching high and low, trying different techniques, and just about near ready to throw my tablet out the window, I finally figured it out -- and I'm not too happy how EASY it was to fix; then again, I am!

Remember, this was directed toward the ISSUE of Flash video not loading into the WebView on my Xoom Android 3.0.1 tablet with PluginState ON. Read my question and then the answer. Enjoy!

Step 1: Simply add this to the tag under your Applications Manifest XML

android:hardwareAccelerated="true"

Step 2: Load up your app and enjoy your Flash enabled WebView!

Good luck!

Solution 2:

webView.setWebChromeClient(new WebChromeClient());

Don't know why but this helped me.

Solution 3:

I have been through the same problem, I can only here audio and can see black screen into WebView. I am using Android 3.2 in Motorola Xoom.

After searching a lot for this solution, finally, I have been able to play video properly in my application.

Solution: I have created another android project with the single Activity containing WebView in it and set above tricks(i.e. android:hardwareAccelerated="true" etc.). Surprisingly, I was able to play the video perfectly into this project!

The strange thing is I was unable to play it with my application's project with the same source code and all. Anyhow it did work for me, don't know how!

Solution 4:

From the API doc here

In your Android manifest file, add the following attribute to the <application> tag to enable hardware acceleration for your entire application:

<application android:hardwareAccelerated="true" ...>

To enable or disable hardware acceleration at the activity level, you can use the android:hardwareAccelerated attribute for the <activity> element.

<application android:hardwareAccelerated="true">
    <activity ... />
    <activity android:hardwareAccelerated="false" />
</application>