Skip to content

If Application has long running tasks, then may need to consider implementing services to run those log running operations in the background. Service like activity is a component in android. Services can be created by extending Service class and implementing required callback methods. Services created by extending Service class handle multiple r…

Notifications You must be signed in to change notification settings

Suvam-Dawn/IntentService-Android

Repository files navigation

IntentService-Android

If Application has long running tasks, then may need to consider implementing services to run those log running operations in the background. Service like activity is a component in android. Services can be created by extending Service class and implementing required callback methods. Services created by extending Service class handle multiple requests concurrently and they run in the main thread. But if your requirement is that each service request be handled one at a time and in separate work thread, then the best way to create it is by extending IntentService class. IntentService class provides framework to take care of queuing requests, executing request one at time in worker thread and stopping service when not used. In this post, I will show how to implement IntentService.

About

If Application has long running tasks, then may need to consider implementing services to run those log running operations in the background. Service like activity is a component in android. Services can be created by extending Service class and implementing required callback methods. Services created by extending Service class handle multiple r…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages