Not sure if you have already resolved this. But here is one quick solution: you can set the flag, FLAG_ACTIVITY_PREVIOUS_IS_TOP when you create intent for your new activity. This would prevent bringing your new activity in the foreground.
-Ritu On Apr 22, 4:13 pm, "~ TreKing" <treking...@gmail.com> wrote: > On Thu, Apr 22, 2010 at 11:27 AM, DulcetTone <dulcett...@gmail.com> wrote: > > Is there a way to call startActivity(Intent) without the newly > > started activity displacing the current one as the active, > > foreground activity? > > I'm very curious as to why you want to do this. > > > If not purely so, are there near approximation to this effect that can be > > done, such as mimicking a back keypress event right after > > calling startActivity()? > > Mimicking the back key after opening your Activity would just immediately > finish() it so this would be, for all accounts and purposes, utterly > pointless. > > ------------------------------------------------------------------------------------------------- > TreKing - Chicago transit tracking app for Android-powered > deviceshttp://sites.google.com/site/rezmobileapps/treking > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en