On Mon, Nov 5, 2012 at 5:02 PM, [email protected]
<[email protected]>wrote:

> To my surprise the onCreate event of the service executes again!!  I would
> expect that only the onStartCommand would execute on subsequent
> StartService(i) calls.  The service was indeed still running when the call
> was made.
>
> Is my expectation correct?  Why is onCreate executing again in the service?
>

Maybe, maybe not. I don't know if GetRunningServices does what you think it
does, but here's a question. In each case, what does startService return?

Quoting the docs:

> If the service is being started or is already running, the 
> ComponentName<http://developer.android.com/reference/android/content/ComponentName.html>of
>  the actual service that was started is returned; else if the service
> does not exist null is returned.
>

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
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