Hi, I have an app with 4 tabs, with one main activity and with each tab having views as tab content. I have created a custom Dialog (extends Dialog) which is launched in Tab 0. This dialog has a button which when clicked should dismiss the dialog and go to Tab 1. How do I go about doing this?
As of now, I am able to display the dialog. I tried to do this in my onClick method in the CustomDialog class. ((MainActivity) getOwnerActivity()).getTabHost().setCurrentTab(1); but this gives me a Null Pointer Exception. Also, if I navigate to Tab 1 from Tab 0 on a button click, how do I make sure that I get back to Tab 1 when I hit the BACK key? Thanks, Y -- 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

