On Thu, Dec 10, 2009 at 7:33 PM, Samuh <[email protected]> wrote:
> I thought "finishing the activity when it becomes invisible" was a > taboo (i.e. against the activity and Task design guidelines); however, > I can imagine cases where not maintaining a History would help keep > the memory footprint of the app low. > (1) This is a debugging feature, not something to turn on for normal production. (2) It doesn't finish the activity; it destroys the current instance, which will thus needed to be re-instantiated the next time the user navigates to it (thus providing a way to test the state save/restore mechanism of activities). (3) There isn't a taboo about actually finishing an activity when it becomes invisible... if that is the user interaction you want, go for it I guess, though it might be a bit weird. (But finishing an activity after starting another one, effectively making it disappear after the user leaves it, is a very common and useful pattern.) We would probably achieve the same thing on the device, we are > developing on, but not every user will have this turned ON on their > devices, right? > No users should EVER have this turned on. And I believe this is an unprotected system setting so it would be possible for an application to turn it on... but dear ghod do not do that, and the instance we hear about any app doing that we will need to do something to prevent it. This is not at all, ever, ever, something you should be running a device with for normal usage. -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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

