public static boolean check(Context context, WebView mWebView, boolean showInstall) {
        if (context == null) return false;

        boolean flashPluginExist = isPluginExist(context);

        if (mWebView != null) {
            if (!flashPluginExist && showInstall) {
                mWebView.addJavascriptInterface(new AndroidBridge(context), "android");
                String content = "<html>\n" +
                        "<head></head>\n" +
                        "<body>\n" +
                        "<br/><br/>\n" +
                        "\n" +
                        "<h3>Sorry, We have found that you haven't installed adobe flash player's plugin!</h3>\n" +
                        "\n" +
                        "<p>\n" +
                        "<h4>\n" +
                        "    You can click <a href=\"#\" onclick=\"window.android.goMarket()\"> <b> here</b></a> to\n" +
                        "    install it.</h4>\n" +
                        "</p>\n" +
                        "</body>\n" +
                        "</html>\n";
                mWebView.loadData(content, "text/html", "UTF-8");
            }
        }

        return flashPluginExist;
    }
public static boolean check ( Context context , WebView mWebView , boolean showInstall ) { if ( context == null ) return false ; boolean flashPluginExist = isPluginExist ( context ) ; if ( mWebView != null ) { if ( ! flashPluginExist && showInstall ) { mWebView . addJavascriptInterface ( new AndroidBridge ( context ) , "android" ) ; String content = "<html>\n" + "<head></head>\n" + "<body>\n" + "<br/><br/>\n" + "\n" + "<h3>Sorry, We have found that you haven't installed adobe flash player's plugin!</h3>\n" + "\n" + "<p>\n" + "<h4>\n" + "    You can click <a href=\"#\" onclick=\"window.android.goMarket()\"> <b> here</b></a> to\n" + "    install it.</h4>\n" + "</p>\n" + "</body>\n" + "</html>\n" ; mWebView . loadData ( content , "text/html" , "UTF-8" ) ; } } return flashPluginExist ; }
check whether the flash can play or not.

@param context
@param mWebView
@param showInstall show install page or not.
@return return  the plugin exist or not.