2

i want to reaplace + with up.png imagae bt image is not generated on webview..... so give me help.

thanks in advance.

    str = str.replaceAll("\\+","<img src=drawable/up.png/ >");
    WebView web = (WebView) findViewById(R.id.webview);
     String summary = "<html><body><marquee>"+str+"</marquee></body></html>";
     web.loadData(summary, "text/html", "utf-8");
sittu
  • 51
  • 2

1 Answers1

0

I think that your img src location is incorrect. Check out this question. I think the src should be 'file:///android_res/drawable/up.png'.

Community
  • 1
  • 1
Nick Campion
  • 10,479
  • 3
  • 44
  • 58