Flash does not load in web view on Android

I am trying to load a webview in Android. Where the webpage has a swf file, but it does not load. I know that there are many questions and answers on the same topic, but no one helped me.

I already aimed it at version 11. And I put android:hardwareAccelerated="true" in the manifest.xml file too.

enter image description here

My code here is

 public class MainActivity extends Activity { private WebView mWebView; String url="http://mypages.com/Ch_001/ScoPage.html"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mWebView = (WebView) findViewById(R.id.webView); mWebView.setKeepScreenOn(true); WebSettings settings = mWebView.getSettings(); settings.setPluginState(PluginState.ON); mWebView.getSettings().setJavaScriptEnabled(true); mWebView.getSettings().setDomStorageEnabled(true); mWebView.getSettings().setBuiltInZoomControls(true); mWebView.setInitialScale(100); // wbView.getSettings().setUseWideViewPort(true); mWebView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_OVERLAY); mWebView.setWebViewClient(new MyWebViewClient()); } private class MyWebViewClient extends WebViewClient { @Override public void onPageFinished(WebView view, String url) { super.onPageFinished(view, url); } @Override public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { Log.e("Error VAGARO", error.toString()); handler.proceed(); } @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return false; } } } 
+6
source share
3 answers

After one week of struggle, I got a flash player from Macromedia that works for me. If someone has the same problem, you can try it with confidence that it will work for you too -

1) You can do a Google search for "Flash Player 11.1.for Android 4.0 - Macromedia - Adobe" or

Install APK from under the link -

https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source= web & cd = 1 & CAD = RJA & SQI = 2 & Ved = 0CCkQFjAA & URL = HTTP% 3A% 2F% 2Fdownload.macromedia.com% 2Fpub% 2Fflashplayer% 2Finstallers% 2Farchive% 2Fandroid% 2F11.1.115.17% 2Finstall_flash_player_ics. APK & e = cWHIUt7VJaen0AX114GoDg & USG = AFQjCNG7r1emPSGdLTvKGM2n_0xWU79xuQ & Sig2 = VyNfVCZzfqdhOf5GPAttwA & BVM = bv.58182178

2) Install this apk on your Android device.

3) And when you open it, he will ask you to choose the default browser.

4) Select any browser that supports FLASH (UC-Browser, Chrome, etc.).

5) Now run your application, which will download your flash video.

+7
source

Add this code:

 webview.getSettings().setPluginsEnabled(true); 

Hope this helps. :)

+3
source

add mWebView.loadUrl(url); in onCreate

-3
source

All Articles