0

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?

2 Answers2

0

It depens on the source of those. I think you would like to use "lazy load ListView". Checkout this

Community
  • 1
  • 1
dinigo
  • 6,872
  • 4
  • 37
  • 48
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