Suppose i run a web service in background(upload 100 images in binary format),If i want to stop then upload stop.If i want again start upload images then again start upload and also stop service (stop upload image into server) if i want. It is possible. If it is possible. Please explain how it is possible.
In this situation, i use AsyncTask Class but when call onPostExecute()
then not call onCancelled()
during executing onPostExecute()
. So How it is possible.
that means i talk about above, i sent request into server for upload 100 images. So when start upload images then images upload running but once i stop (stop upload image)service then stop upload image into server.
If i again start service then again start service.
Please help me anybody via example or tutorial or helpful resource links.