Android Question Performance loading bitmaps

cucvalencia

Member
Licensed User
Hello everyone. My question is as follows: I am making an animated wallpaper with 175 images. In terms of performance and battery consumption, what is better? Loading each image from the "files" folder every time and displaying it on the screen, or declaring 175 bitmaps and displaying each one of these? Thank you.
 

PoseidonSA

New Member
Licensed User
Hello! DO NOT save the bitmaps in variables because that will spike the memory usage of the device. Load it everytime with LoadBitmap or LoadBitmapResize if the size is too big.
 
Upvote 0
Top