Android Question update list every 5 seconds

tufanv

Expert
Licensed User
Longtime User
Hello,

I have a list with around 1000 entries which updates every 5 second with httpjob's received data. I use a scrollview and add labels in it to achive that. This freezes the app for a second with every update. Is there a way to do it without making it freeze the user experience ? ( if the user is typing stg while the update processes , the textfield freezes for example )

Thanks
 

udg

Expert
Licensed User
Longtime User
Do you clear and recreate your list every 5 secs?
What about a temporary background structure to hold the newly received server data and a button to let the user ask for a refresh?

You could have a label signaling new data are available..
 
Upvote 0

KMatle

Expert
Licensed User
Longtime User
It's a design issue to dl 1000 entries every x secs (no user will browse through all the entries). So just load and show what he/she really needs to see (maybe the newest 5 entries). What kind of data is it?

Use FCM and throw a notification like "new data for you" or similar.
 
Upvote 0
Top