How do i get all the user input fields from signupActivity which is currently taking email, passwords and rest of the fields as input from the user and use it in finalactivity.
I already have made the xml layout and wonder how can i display all these fields to a newer activity which is called when signup button is pressed.
My SignupActivity.java:-
public class SignupActivity extends AppCompatActivity {
@Bind(R.id.input_name) EditText _nameText;
@Bind(R.id.input_email) EditText _emailText;
@Bind(R.id.input_password) EditText _passwordText;
@Bind(R.id.btn_signup) Button _signupButton;
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_signing);
ButterKnife.bind(this);
_signupButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
signup();
}
});
}
public void signup(){
//call the finalactivity and do the
}
}
And now finally the signup() function should call the activity finalActivity and print the info. Maybe like this- For eg in the finalactivity i want to display-
Your name is :"name here"
And your email is :"email here"
My question is different from How do I pass data between Activities in Android application? as i want to pass multiple variables (~50) and obviously dont want to create 50 Intents.