开发者

Android: real-time friend list update

开发者 https://www.devze.com 2023-02-02 13:27 出处:网络
I just made an app where a friend list is being updated in real time depending on if you get blocked or deleted by one of your friends, so I refresh the list on the screen. However, I was wondering wh

I just made an app where a friend list is being updated in real time depending on if you get blocked or deleted by one of your friends, so I refresh the list on the screen. However, I was wondering what would be appropriate as the time interval for updates usin开发者_如何学编程g threads? right now I am using 1 second but I think it's a bit exaggerated.


I would have it as user defined. If you set a default time that is unchangeable, some users may think it is running the thread too often. They may also think your app is causing bad battery life. Just have a few options like Twitter or Facebook. Something like 1,5,10,30,60,180,etc.

0

精彩评论

暂无评论...
验证码 换一张
取 消