Thanks Dianne. You rock! On Mar 4, 5:36 pm, Dianne Hackborn <[email protected]> wrote: > Then use "" which means to have no affinity, so it will have affinity to > whatever task it is part of. > > You also can not be part of the "QSB task" there is no such thing -- that is > a launching point with a task break to other apps. > > > > On Fri, Mar 4, 2011 at 5:04 PM, ClarkBattle <[email protected]> wrote: > > If I do that then when my task is started from within my app (rather > > than the quick search box) wont the affinity defined in the manifest > > mess it up? If the task is not launched from the QSB but from my app > > I would like the back button to act as expected but navigating to the > > previous activity in my app. Only when the activity is started by the > > QSB do I want its affinity to be associated to the QSB. Since its > > affinity can be either I would think that means that I cant define it > > from the manifest. It should be done programmatically. Is there a > > way or will it work that way anyway? > > > Thanks. > > > On Mar 4, 4:45 pm, Dianne Hackborn <[email protected]> wrote: > > > Use android:taskAffinity="" (or some other name like ":searchtask") for > > that > > > activity. > > > > On Fri, Mar 4, 2011 at 4:37 PM, ClarkBattle <[email protected]> > > wrote: > > > > I have some results that I am returning to the Android Quick Search > > > > Box. When a result is selected it takes the user into my app. > > > > However, when the user presses "back" at this point I want them to > > > > return to the Quick Search Box, not to the previous activity in my > > > > app. Currently I am starting the activity in my app with: > > > > > newintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP| > > > > Intent.FLAG_ACTIVITY_NEW_TASK); > > > > startActivity( newintent ); > > > > > What do I need to change to make "back" return to the android Quick > > > > Search Box that launched it? > > > > > Thanks, > > > > Clark > > > > > -- > > > > 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 > > > > -- > > > 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 > > -- > 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

