I get 3 data string from editText (in 1 activity), and then go to next activity
button.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
a=editText.getText().toString();
b=editText2.getText().toString();
goToActivity2();
}
});
and in 2 activity, i want to set new variables user1, user2, like this
public String user1 = a(from 1 activity);
public String user2 = b(from 1 activity);
Is it possible ? I cant found information about variables in my basics books java.