开发者

Fetch data from server and refresh UI when data is fetched?

I want to fetch data from server and refres开发者_如何学Goh UI when data is fetched in Android.

What should I use? an AsyncTask or a Service or something else?


You can use the Async task and a method which sets the contentview (layout) of your screen. After the data has been fetched from the server, you can again refresh the screen by calling the method in postexecute() of Asynctask.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜