0

enter image description here

The above emulator image is just getting the input from the user and showing the answer in the edittext of the same page.But i need to show that answer on the Tabhost ( which wants to be on the next page ) like the below image..

enter image description here

How to achieve this concept..?

Kai
  • 38,985
  • 14
  • 88
  • 103
andro prabu
  • 364
  • 3
  • 13

1 Answers1

0

U can call the same tab when u calling the activity just put id to your current tab and call the tab when u call a activity --put it in TabActivity

public void switchTab(int tab) {
tabHost.setCurrentTab(tab);
}

in the activity call TabActivity

TabsActivity ParentActivity;
ParentActivity = (TabsActivity) activity.getParent();
ParentActivity.switchTab(0);// 0 is a current tab id and u can used what ever tab id u want to shift  

i hop this may help u

Jagan
  • 692
  • 1
  • 12
  • 38