简体   繁体   中英

How to check webservice is finish perform?

I have a webservice that download about 100 lines data and store into local database.

Then, from database sqlite , it will allocate into difference list.

I want to get the response from web service when the data is downloading from server to database, either is in progress or finished and should return the status.

I need the status to do some action.

Use AsyncTask for downloading information from web-services to application that will take care about the response (ie progress ) here the document : AsyncTask

tutorial : AsyncTask - Tutorial

Design it in such a way that an Intent will be broadcast upon completion. This is the cleanest way to do it, and broadcast it exclusively to your app.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM