Hello,

I have a Service, it is started by StartService(...), my program never
stop it. The service can be destroied in other cases, such as:
  Stop it in Application->Running Services
  run command: Kill <pid>
  System kill it in case of memory low
  Phone shut down
  other unlist condition...

I want to clean up and save settings whenever the service is
destroied. I tried do this in onDestroy() or finalize(), Neither
satisfies my demand, onDestroy() is only called whe "Stop it in
Application->Running Services", finalize() is never called in all
above condition.

Where is the right point? pls help me, 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

Reply via email to