I am about to make an app that connect to database and update listview every X seconds (connection via WiFi).
My questions:
Thanks in advance for your help.
Try this tutorial:
I think that's not quite good way. That will consume much battery and server's traffic will increase. Try push or increase interval. 10 seconds is too short.
Try this . I use this when I need a connection between server.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.