Android Endless list memory management -


i'm implementing endless listview loading more items arraylist in onscrollstatechanged(...) method. if i'm implementing scheme fetching more 1 million entries, have million objects added arraylist, memory intensive. schemes can use efficient memory management ?

ps: question number of items can put adapter. edit:

more details:

the source of data internet. have fetch data internet , put listview adapter.

i think should keep current entries , 1 before or after them(maybe 100),put data cache.

when scroll listview,fetch more entries , update cache before(do not 1 million @ 1 time).


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -