开发者

Flash in WebView not working on Android 3.2

开发者 https://www.devze.com 2023-03-28 17:40 出处:网络
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.

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().s开发者_JAVA百科etJavaScriptEnabled(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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消