Reputation: 1909
I just need to refresh a ListView with a Feed, which you recommend me for this? A thread? A timer object? I was thinking use a Timer Object with an interval time.
But i am thinking at the moment when a user leave the activity and maybe the timer could not be stopped.
what do you think?
Upvotes: 0
Views: 88
Reputation: 9262
I would suggest using a ScheduledExecutorService:ScheduledExecutorService
The link I have provided has a code example.
Upvotes: 2