I need help understanding how I would approach making an Android application that allows the user to scroll through 365 different bitmaps. I'm worried that I will go outside of the memory limits that android allows. I've tried googling, but haven't been able to understand how to approach the problem. Could someone write a very brief hint at where i can start researching this?
Asked
Active
Viewed 54 times
0
-
reuse the imageviews when they scroll outta screen – Aug 11 '12 at 11:40
-
Is this in a ListView or a Gallery? – Mohit Deshpande Aug 11 '12 at 11:51
-
Are those bitmaps stored in your apk or you have to retrieve them from the internets? – dinigo Aug 11 '12 at 12:06
2 Answers
0
It depens on the source of those. I think you would like to use "lazy load ListView". Checkout this
0
how about using any class that extends from AdapterView (like listView, gridView,...) ?
the idea is that since the user doesn't really see all of the views at the same time , you can re-use views that are being disappeared when scrolling , and show them as new ones .
watch the video of google called "the world of listView" .
anyway , if you don't wish to use this solution , consider being very "cheap" on the memory , as you are correct - android will kill your app if you use too much RAM .
you can read about handling bitmaps here .

android developer
- 114,585
- 152
- 739
- 1,270