1

Possible Duplicate:
Sharing data between tabs

In the main Tab, I have a button. After clicking it, it calls tabHost.setCurrentTab(1)
It then goes to another tab. But here, I want to pass the value of editText in Tab(0) to Tab(1). How to do it?

Community
  • 1
  • 1
red23jordan
  • 2,841
  • 10
  • 41
  • 57

1 Answers1

3

Tab 0

getParent().getIntent().putExtra("key", "value");

Tab 1

String value = getParent().getIntent().getStringExtra("key");
dira
  • 30,304
  • 14
  • 54
  • 69