Need to ask an obvious question: is your service crashing before 
onStartCommand completes?

On Wednesday, July 3, 2013 12:02:34 AM UTC+1, Shri wrote:
>
> My service returns Service.START_NOT_STICKY from Service.onStartCommand. 
> However, from the event log, I see that my activity is restarted after ANR, 
> OutOfMemoryError, native crashes, etc. 
>
>     06-25 14:11:43.628 I/am_schedule_service_restart(  108): 
> [com.shri/com.shri.TestService,17816]
>
> This is a problem because the Intents also seem to being redelivered which 
> breaks the invariants of my app. Is there a way to prevent my service from 
> being restarted?
>
> Thanks,
> Shri
>

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to