> Could I suggest an update to documentation then? > Do you guys need a bug report to be lodged to do this kind of thing?
Either a bug report (http://b.android.com) or a patch would help increase the odds that the change gets made. > Does this also apply to services? There is no onTerminate() in services. There is onDestroy(), which is called using the same rules as onDestroy() with activities -- it probably gets called, but it cannot be assured. > I > think things could go quite badly if the code were to just stop in the > middle of (say) a database update. The only time your process will be terminated forcefully, AFAIK, is if the device needs RAM in a hurry to handle a phone call or similar system events, or possibly if the user is powering down the phone. Moreover, bear in mind: -- SQLite is transactional, and so should survive process termination mid-transaction...assuming you are using your transactions properly -- There are other scenarios in which things can terminate mid-transaction (e.g., battery dies) -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

