Bitmap too large to be uploaded into a texture





Problem: “Bitmap too large to be uploaded into a texture”Got this error when I tried to run an application from eclipse to physical device.
On googling, found that it relates to some size limit of image for OpenGL hardware textures (2048x2048). But that wasn't the reason in my case. Actually in my case, image was less than 2048 for both x and y dimensions.



Analysis: I found that image was in drawable folder and Android system assumes drawable as mdpi and then take decision for scaling them down or up according to other resolutions.

Solution: Moved image to new folder named drawable-nodpi and the problem gone.