8

I am having a problem that only happens on my Motorola Xoom which I have updated to 3.2 through OTA. I have a simple application that uses a WebView to load a small html that has flash content in it. Here is the code snippet.

mWebView = (WebView) findViewById(R.id.webview);
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.getSettings().setPluginsEnabled(true);

I know it is correct because it can run fine on my Samsung Galaxy S running Android 2.2. Anybody else seen this problem? Any idea how I can solve this problem?

Many thanks and I am really stuck here.

Safecoder
  • 1,015
  • 1
  • 15
  • 32
  • Just did some more experiments. Same problem when I tried to load the swf file directly instead of a html file - works fine on 2.2 but nothing shows up on 3.2. – Safecoder Aug 18 '11 at 04:59
  • I've been getting reports from users with 3.2 (on other devices) running into the same issue with flash. – Pete Aug 18 '11 at 06:04
  • Thanks, Pete. Any suggestions on any possible workarounds? – Safecoder Aug 18 '11 at 06:40
  • 1
    See this solution: http://stackoverflow.com/questions/5383364/flash-video-not-displaying-in-webview-for-android-3-0-1 – AlikElzin-kilaka Feb 12 '12 at 12:48

1 Answers1

12

Try to build your application with the latest android Api (13), and activate hardware acceleration (same link, just a little below) on your activity that need to display flash.

NitroG42
  • 5,215
  • 2
  • 25
  • 30