Create bitmap out of memory in android -


i have following code create canvas size of 8303 × 5540, running code produces outofmemoryexception.

scaledbitmap = bitmap.createbitmap(8303, 5540, bitmap.config.argb_8888); 

how can resolve problem?

setting android:largeheap="true" in androidmanifest.xml helped me.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

Error while updating a record in APEX screen -

c++ - In an add-in in Excel, written in C(++), how does one get the name of the function which called into the addin? -