It might be a good idea to check for intent being null, rather than catching the NPE - exceptions are for exceptional situations :)

You also might find this useful:

http://developer.android.com/reference/android/app/Service.html#START_REDELIVER_INTENT

This is a flag that makes Android redeliver the intent, so the service "remembers" what it was doing.

-- Kostya

31.08.2010 14:39, anders пишет:
I've done some more investigations, and it seems like the random FCs
never happens when the activity starts the service. It's rather the
system that sometime feels like starting the service....and when this
happens, the intent is null. My solution for this problem right now is
just to swallow that NPE....and that feels like a really good
solution......



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

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