Saturday, January 8, 2011

Re: [android-developers] Gingerbread BroadcastReceiver Issue

I really doubt it's crashing, as the service doesn't do anything, really. It registers the BroadcastReceiver and then sits and holds a reference to it. It would sometimes get killed before, but it would then be restarted, re-register, and continue on.

As it stands, the current code I have isn't getting it's onDestroy called, and if it is then restarted it's onStartCommand isn't being called either: this leads me to believe the service lifecycle isn't the problem. I think something is happening to the BroadcastReceiver somehow that is causing it to not receive the event.

To be sure, I'm trying out the startForeground thing to rule out the service lifecycle issue. If that doesn't fix it I will check out the logs and your dumpsys call.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate