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

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -