2011-11-20 169 views
1

如何在WebView中播放Flash内容? 任何教程?在Android WebView中播放Flash?

+0

你有一个网页中嵌入自己的应用Flash组件? – Zakaria

+0

顺便说一句,看看这里:http://stackoverflow.com/questions/2994116/load-an-swf-into-a-webview – Zakaria

+0

我有一个webview,我启用java和plugind,但没有什么 –

回答

2

尝试setPluginsEnabled(true)

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

相关:

+0

不工作:(谢谢 –

+0

哦,我解决了!通过添加此 - > android:hardwareAccelerated =“true” 代码,感谢您的帮助 –

+0

不要忘记标记为回答的问题,通过点击这篇文章左侧的绿色箭头! –