How can I switch the activity of the content of a tab in Tabhost

Posted by hap497 on Stack Overflow See other posts from Stack Overflow or by hap497
Published on 2009-12-08T01:15:43Z Indexed on 2010/04/07 23:03 UTC
Read the original article Hit count: 321

Filed under:

Hi,

I have created a TabHost and in 1 of the tab, I have added the content using

 mTabHost.addTab(mTabHost.newTabSpec("tab1")
                .setIndicator(getString(R.string.dialerIconLabel),
                        getResources().getDrawable(R.drawable.ic_tab_dialer))
                .setContent(intent));

Is it possible for me to switch the content's activity programatically after I called 'addTab of TabHost'?

Thank you.

© Stack Overflow or respective owner

Related posts about android