if a service is already created from being bound to, and then
startService is called (overlapping lifecycles) ... is it considered
started immediately after 'startService()' is called, or only after
onStartCommand() has completed ?

For example, if the following happens:
bindService(BIND_AUTO_CREATE)

... Service.onCreate() is called ...
... some time later ...

then these calls are issued immediately back to back
startService()
unbindService()

Is there the possibility that the service will be destroyed (from the
unbind) and then recreated (from the startCommand) ... does the system
simply mark the service in the started state immediately after
startService() is called if it is already created ?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to