I was curious if it was possible to add an image drawable already in memory to a WebView in Android.
Currently I am being passed a Drawable object and would like to add it directly to the WebView without saving it to disk.
Is this possible?
Example:
WebView myWebView = (WebView) findViewById(R.main.Content);
InputStream is = (InputStream) new URL(imageURL).getContent();
Drawable image = Drawable.createFromStream(is, "src");
myWebView.add(image); //Fictitious code
I have tried using the WebView's "SetBackground" method, however I would not like to limit my min API to Jellybean, as well as I was only presented with a blank screen.
Thanks