WebView 中的 Flash 不适用于 Android 3.2 [英] Flash in WebView not working on Android 3.2
问题描述
我遇到的问题只发生在我通过 OTA 更新到 3.2 的摩托罗拉 Xoom 上.我有一个简单的应用程序,它使用 WebView 加载一个包含 Flash 内容的小 html.这是代码片段.
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);
我知道它是正确的,因为它可以在我运行 Android 2.2 的三星 Galaxy S 上正常运行.有其他人看到过这个问题吗?知道如何解决这个问题吗?
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.
推荐答案
尝试 build您的应用程序使用最新的 android Api (13),并在需要显示 flash 的 Activity 上激活硬件加速(相同的链接,仅在下方).
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 中的 Flash 不适用于 Android 3.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!