I want to display a bitmap read from an SD card in the actual pixel size on Android.
I can not assume anything about the bitmap, except Android, supports its image format. The bitmap can be huge.
It seems simple enough, but when you define restrictions on the use of Android memory, it becomes much more complicated.
Any ideas?
Change Trying to load a large bitmap produces an error from memory, because Android cannot allocate enough memory to decode it. You can download a smaller version of the bitmap, but this is not useful for displaying the bitmap at the actual pixel size. The question is how to show a large bitmap on Android, while staying within the applicationโs memory limits (most likely by loading it in pieces).
Change 2 . The bitmap can be huge, but within reason. I'm talking about user images, not Nasa HD snapshots.
source share