闪光灯的WebView不工作在Android 3.2 [英] Flash in WebView not working on Android 3.2

查看:88
本文介绍了闪光灯的WebView不工作在Android 3.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,只是发生在我的摩托罗拉Xoom,我已经通过OTA更新到3.2。我有一个使用的WebView加载一个小的HTML中有Flash内容的简单应用程序。这里是code段。

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);

我知道这是正确的,因为它可以在我的三星Galaxy S运行正常运行Android 2.2。任何人看到这个问题?任何想法如何,我可以解决这个问题?

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.

推荐答案

尝试建设您的应用程序使用了最新的Andr​​oid阿比(13),并激活硬件加速(同一个链接,只是一个小图)在你的活动,需要显示闪光灯。

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.

这篇关于闪光灯的WebView不工作在Android 3.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆