How can I play Flash content in a WebView? Any tutorial?
Asked
Active
Viewed 5,491 times
2
-
Do you have a webpage embedding a Flash component in your app? – Zakaria Nov 20 '11 at 13:50
-
By the way, have a look here : http://stackoverflow.com/questions/2994116/load-an-swf-into-a-webview – Zakaria Nov 20 '11 at 13:52
-
1I have a webview, I enabled java and plugind but nothing – Alex Smith Nov 20 '11 at 13:52
-
Please, can you post your code ? – Zakaria Nov 20 '11 at 13:56
-
1oh, I solved it! by adding this --> android:hardwareAccelerated="true" to the code, thanks for your help – Alex Smith Nov 20 '11 at 14:05
1 Answers
3
Try setPluginsEnabled(true)
:
mWebView = (WebView) findViewById(R.id.webview);
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.getSettings().setPluginsEnabled(true);
Related:

Samuel Liew
- 76,741
- 107
- 159
- 260
-
oh, I solved it! by adding this --> android:hardwareAccelerated="true" to the code, thanks for your help – Alex Smith Nov 20 '11 at 14:06
-
I put both android:hardwareAccelerated="true" and setPluginsEnabled(true) my problem solved. – Ahmed Nawaz Feb 07 '13 at 07:23
-
i think i need something else ... all steps already done, but the result still empty.... i wonder what else should i do then? @Samuel.... – gumuruh May 27 '20 at 07:59