I have a 3MB image with resolution 1920*1080, when I try to load this image on a Real Device (441 PPI & 5.5 inch screen : Oneplus2 Device) it works fine.
But when I run this code on a emulator device (1GB Ram | 441 PPI density|5.5 inch screen) then i am getting the OutOfMemoryError
.
I am Loading the image to the Background of my RelativeLAyout
via XML.
I checked the Devloper.android for loading the bitmaps efficiently but it was not much clear to me. So can you please help me out.