I just found my own solution: passing a parameter into intent to
specify which tab screen to display.

On Jul 5, 3:45 pm, Jeruliu <jeru....@gmail.com> wrote:
> Hi all,
>
> I have a main TabActivity contains 2 tabs, each tab is an activity.
>
> By default the TabActivity will display the content of the first tab.
>
> From the second tab, a edit form will be pop up as dialog box. Now in
> this dialog box, once i click the save button, i would like to
> 1. close the dialog
> 2. navigate back to the TabActivity
> 3. set current tab to the second tab
>
> My problem is i can't get the reference of TabActivity to call
> setCurrentTab function from the pop up dialog.
>
> I spent a lot of time to google but don't have an answer till now, can
> someone kindly help me on this?
>
> 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