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

