title: Trying to append an image in android webview
body: <p>So ive been trying to find the simplest way to append an image in a webview using javascript. i wrote out the html myself and included my own function that looked something like this:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  function image(src) {
      var img = document.createElement("IMG");
      img.src = src;
      document.getElementById('image').appendChild(img);
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>I found out that i cant just use 
      myview.loadurl(javascript:image('line1.png'));
  So im trying to figure out how i can do this. I was thinking about relegating this function to one line of code i can fit in loadurl(), but i seem to be getting an error around that as well. Ive heard of using addJavascriptInterface but its seems complex and im not sure if it fits what i want. So whats my best course of action?</p>