Jake,

Regarding "onStartCommand isn't called" after restart.
This is more like a terminology problem: when Android "restarts" the
service it actually "recreates" i.e. calls onCreate() method only.
onStartCommand() is not called because nobody requested this service
directly  (e.g. no other process issues callService())

Do your initialization inside onCreate() but keep return START_STICKY
in the onStartCommand().

BTW: you don't need to wait for an hour to recreate the kill/create
scenario: use DDMS to manually kill your service.

Good luck
Igor

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