It's supposed to be called (and if there isn't an actual pending command to
deliver it is called with a null Intent), but there is a bug on 2.3 where it
is not.  It will only be called in cases where there are actual outstanding
intents to deliver.

On Mon, Feb 28, 2011 at 8:24 PM, rich friedel <[email protected]>wrote:

> Sorry to bother you again but I just want to clarify...
>
> So onStartCommand() will in fact always be called at some point after the
> service is restarted when using the START_STICKY flag in 2.3+? Is this
> correct?
>
> I have tested it in the emulator and it seems to work fine (I don't have a
> physical device with 2.3 yet) I am just making sure.
>
> Thank you
>
> --
> 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
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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