Hi,

The problem is i don't have the reference of TabActivity so there is
no way to call getTabHost() from sub activity.

But however I've figured out the solution myself by passing the screen
parameter to intent, then in TabActivity call setCurrentTab(screen)

On Jul 6, 4:50 pm, grace <grace.a...@wipro.com> wrote:
> HI,
>
> Try using getTabHost().setCurrentTab(1/*tab2*/);
> once you enter/leave the tab2 activity
>
> On Jul 1, 9:01 pm, Jeruliu <jeru....@gmail.com> wrote:
>
> > I have a TabActivity class A with 2 tabs, a sub activity class B in
> > tab 2.
>
> > Now a dialog pops up from the UI in B, once i click the save button in
> > this dialog it goes back to the TabActivity but the tab is set to 1,
> > however i want to set the current tab to 2 once the dialog box closed.
>
> > In short i need to acquire the tabHost reference in the diaglo when
> > clicking on the save button.
>
> > Please let me know how to do that thanks.

-- 
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

Reply via email to