How to step parameter in html to load in android webview

0

I need to pass parameters in the "image" and "embed" tag to load in a webView, but the parameters must be in the Android assets folder

int height = PKViewSize.getHeightOfDisplay(context);
int width  = PKViewSize.getWidthOfDisplay(context);

String html = "<html>"
                + "<head>"
                    + "<meta charset=\"UTF-8\"> <title></title>"
                + "</head>"
                + "<body bgcolor=\"#000000\"> "
                    + "<img src=\"Galeria_Menu5-Img_2.png\">"
                    + "<center>"
                        + "<article> "
                            + "<param name=wmode value=transparent>"
                            + "<embed src=\"1.swf \" height=\" +" + height + "+ \"  width=\"+" + width + "+\" wmode=transparent "
                            + "type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /> "
                        + "</article>"
                    + "</center>"
                + "</body>"
            + "</html>";

webView.loadData(html, "text/html", "UTF-8");
    
asked by anonymous 30.07.2014 / 21:22

1 answer

0

I was able to ...

String html = "<html>"
            + "<head>"
                + "<meta charset=\"UTF-8\"> <title></title>"
            + "</head>"
            "<body bgcolor=\"#000000\"> "
                        + "<img src=\"file:///android_asset/" + filename +"\">"

                    + "</body>"
        + "</html>";
    
31.07.2014 / 15:57