To simulate an animation I decode a sequence of frame next to another and update it on a Bitmap at a fixed rate. The problem is everytime the BitmapFactory.decodeFile function get call it allocate new File and FileInputStream objects, this leads to the GC being called very frequently.
So is there a way to effectively decode file in this scenario for Android. Note that caching Bitmap is useless here 'cause the frames loop continuously one after another.