I'm loading a 489KB bitmap using the BitmapFactory.decodeFile.
and I check how much memory my program takes after lo开发者_如何学Cading it and I see it adds ~5000KB
why is that, and what should I do to avoid it?
Your bitmap is file is most likely compressed (PNG/JPG). You can't expect that loaded bitmap will be still compressed in memory. Each decompressed pixel in memory takes usually 4 bytes.
精彩评论