Does anyone have answers to my question below?
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.
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment