But if my activity in the tab is at the top of the history stack (jump
from tab one to itself, yes it's useless, it's just a test), even if
its launching mode is singleTop, a new activity is launched full
screen.

On 22 sep, 10:52, hackbod <[EMAIL PROTECTED]> wrote:
> That is behaving as expected -- startActivity() launches a new top-
> level activity.  You need to explicitly add tabs just like you put
> your first in the tab host.
>
> On Sep 22, 1:09 am, Guillaume Perrot <[EMAIL PROTECTED]> wrote:
>
> > Ok, here is a sample project:http://tinyurl.com/test-tabs
> > Two tabs, each tab is an activity.
> > There is one menu item in each tab that allow to jump to the other via
> > an intent.
> > The problem is, instead of jumping into the expected tab, a new
> > activity is launched full screen.
> > I tried different combinations of intent flags and manifest flags but
> > in all cases I tested, the activity is launched full-screen instead of
> > reusing the one in tabs...
> > Hopefully I have a workaround (which is quite a hack) to implement
> > this jump feature (by sending a custom intent to the main activity,
> > which call setCurrentTab) but I would like to know if what I am trying
> > to with tabs is possible an how...
>
> > On 20 sep, 14:01, "Mark Murphy" <[EMAIL PROTECTED]> wrote:
>
> > > > I am still looking for the answer ;)
>
> > > Personally, I haven't used the particular part of Android you are
> > > inquiring about.
>
> > > Generally, providing source code demonstrating your problem tends to yield
> > > more responses on lists like this. Can you give us a sample project that
> > > shows where things are going wrong for you?
>
> > > --
> > > Mark Murphy (a Commons Guy)http://commonsware.com
> > > _The Busy Coder's Guide to Android Development_ Version 1.2 Published!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to