Getting Bitmap from WebView generates OutOfMemory crash

后端 未结 2 1624
长情又很酷
长情又很酷 2021-02-19 11:18

I have a custom WebView and I want to get a bitmap of its content (offscreen included). I used this code, which I got from here:

 public static Bitm         


        
2条回答
  •  暖寄归人
    2021-02-19 11:27

    Quick fix:-

    Set android:largeHeap="true" in your AndroidManifest.xml file.

    
    

    Gud luck :)

提交回复
热议问题