Periodically fetching data (polling) from the server in Android

后端 未结 3 1246
北荒
北荒 2020-12-29 14:31

I working on the app where I get the data from the server using rest call and add it to the view. I get all the initial data correctly. I use AsyncTask for doing it.

3条回答
  •  独厮守ぢ
    2020-12-29 15:03

    follow the tutorial mentioned here. This is exactly what you want to do. Also since server calls are made every few mins this consumes battery. So you can try for server calls only when the server data changes through Push notifications ..

提交回复
热议问题