Hi all
Now I have a tabactivty is class A contain two tabs: tab1 have class B,tab2 have class C...
When run project tabactivity is display at tab1...In class B , i have a button1 to go to the class C...in class C i have a edittext and a button2...I want enter any text in edittext and click button to pass them to class B...
I have try any way:
In classB :
when click button1 I setcurrenttab(1) to go class C and in onCreate
Intent myIntent = new Intent();
myIntent = this.getIntent();
String value_receive = myIntent.getString("stringtext");
button1.setText(value_receive);
In class C:
when click button2 I set curretTab(0) to go class B and method onPaused of class C
@Override
public void onStop(){
Intent myIntent = new Intent();
myIntent.putExtra("stringtext", edittext.getText().toString());
this.setIntent(myIntent);
}
but when i run project button1 in class B not display text received from class C....
Can you help me to pass value between activity in tab....Thank for regard !


