How to load local image in Android WebView

前端 未结 4 1914
情书的邮戳
情书的邮戳 2021-01-05 08:56

I\'m trying to load a html string stored in the database which contain a image into a WebView. The image is stored in the internal memory. I am giving a referen

4条回答
  •  囚心锁ツ
    2021-01-05 09:15

    Put the images in your assets folder. Then use the corresponding prefix

    file:///android_asset/
    

提交回复
热议问题