[android-developers] Re: How to set current tab in the sub activity pop up dialog

2012-09-17 Thread Rui Sun
Hi I encounter the same problem~ and I heard you've solved it.(from http://permalink.gmane.org/gmane.comp.handhelds.android.devel/104923 )could you please show me the code? Thanks a lot On Friday, July 2, 2010 12:01:15 AM UTC+8, Jeruliu wrote: I have a TabActivity class A with 2 tabs, a sub

[android-developers] Re: How to set current tab in the sub activity pop up dialog

2010-07-08 Thread Jeruliu
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

[android-developers] Re: How to set current tab in the sub activity pop up dialog

2010-07-06 Thread grace
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