2

How can I play Flash content in a WebView? Any tutorial?

Samuel Liew
  • 76,741
  • 107
  • 159
  • 260
Alex Smith
  • 23
  • 1
  • 3

1 Answers1

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