I’m using RoboGuice+SherlockActionBar-V4.0 and building a sample app to test tab-navigation ,
I checked the roboguice-sherlock example which is coming with SherlockActionBar package but … no help .
How can I switch the activities with the Tabs ?
//old method was .
spec = tabHost.newTabSpec("tab1").setIndicator(null,
res.getDrawable(R.drawable.ic_tab_capture))
.setContent(new Intent(this,TabOne.class));
tabHost.addTab(spec);
If any sample code is available then it should be great for me.
Thanks in advance .
From their sample code, you can try the following:
This works in my 2.3.3 environment, using ABS4 and RoboGuice.