Android stop specified IntentService

Viewed 189

I've have develop an android application with an IntentService.

This IntentService does nothing more like a fileupload.

I just want to implement the functionality to upload multiple "file-upload-threads".

The problem is to stop one specified "file-upload-thread".

For example:

  1. User choose ten files from the device and upload these.
  2. A notification is created to gives the user "transfer-feedback".
  3. While the thread is working the user can choose other files to upload.
  4. Another notification is created but does not start until the first thread is done.

Is it possible to implement a "cancel-functionality" for the user to cancel the first thread and the second thread start automatically?!

Maybe is it better to user an Service instead of an IntentService?

3 Answers
Related