Does it do exactly the same thing? It sounds to me like finishOnTaskLaunch finishes an activity when it is relaunched from the homescreen - what I wanted to do is have an activity finish when it goes to the background. Or would this be identical as calling finish() in the onPause() method?
On Thu, Dec 11, 2008 at 5:16 PM, Dianne Hackborn <[email protected]>wrote: > Yes the documentation is out of date, it got renamed to finishOnTaskLaunch. > > On Thu, Dec 11, 2008 at 7:57 AM, Adam K <[email protected]>wrote: > >> ping! is the documentation out of date? or am i not understanding how to >> use finishOnBackground? >> >> >> On Mon, Dec 8, 2008 at 2:48 PM, Adam K <[email protected]>wrote: >> >>> >>> Hi all, >>> >>> I want to do the following for a notification type activity that >>> should be removed/closed from the system either via a button in the >>> activity, or the user leaving with back or home: >>> >>> from - http://code.google.com/android/intro/appmodel.html >>> Another approach you can take is to set the notification activity's >>> task affinity to the empty string "" (indicating no affinity) and >>> setting the finishOnBackground attribute. ... By specifying this >>> attribute, the activity will be finished whether the user leaves it >>> with BACK or HOME; if the attribute isn't specified, pressing HOME >>> will result in the activity and its task remaining in the system, >>> possibly with no way to return to it. >>> >>> However, I don't see any other references in the docs to >>> finishOnBackground - the link on that page takes me to >>> finishOnTaskLaunch instead. Any ideas? >>> >>> Thanks, >>> >>> Adam >>> >>> >>> >> >> >> > > > -- > 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. 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 -~----------~----~----~----~------~----~------~--~---

