Issue
I read about IntentService and wonder about it´s lifestyle and effect on the Android Application. I know when the IntentService starts Android first starts the android.app.Application by running onCreate() . When the IntentService running queue is empty the IntentService can be killed.
But what happens then to the started android.app.Application?
Solution
The Application class is a Singleton and will exist as long as your app's process still exits. The IntentService exits on its own once the are no more Intents for it to handle, but that does not mean the app process exits. Read about processes and threads here to get more information: https://developer.android.com/guide/components/processes-and-threads.html
Answered By - Larry Schiefer
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.