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 -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -