1

First I load the bitmap from url and then I want to load this bitmap to webview element. Is there a way to load bitmap from the app install folder?

Mat
  • 202,337
  • 40
  • 393
  • 406
Maneesh
  • 6,098
  • 5
  • 36
  • 55
  • http://stackoverflow.com/questions/10849200/android-how-to-display-a-bitmap-in-a-webview – Hiep May 27 '14 at 18:59

1 Answers1

0

If you only want to show off the Bitmap, you might want to use an ImageView.

Otherwise, I guess the picture is in your res/drawable or assets-folder:

To show the Image from the assets-folder use the following:

browser.loadUrl("file:///android_asset/yourfile.png");

Where browser is your WebView-Object.


To show the Image from the res-folder, you use something like this:

browser.loadUrl("file:///android_res/drawable/yourfile.png");
Lukas Knuth
  • 25,449
  • 15
  • 83
  • 111