For example:įirst Intent intent = new Intent(UserActivity.this, AccountActivity.class) If you have some data you want to pass through multiple activities, you have to re-add it to the new sending intent for each step. String password = getIntent().getExtras().getString("password") Įxtras you put on an intent are not automatically passed along to subsequent activities after the first one they are sent to directly. String username = getIntent().getExtras().getString("username") String email = getIntent().getExtras().getString("email") String surname = getIntent().getExtras().getString("surname") String name = getIntent().getExtras().getString("name") Intent intent = new Intent(OTPVerification.this, HomeActivity.class) Intent.putExtra("phoneNumber", reg_phone_number) Intent intent = new Intent(PhoneNumberOtp.this, OTPVerification.class) third activity transfer data last activity Intent.putExtra("password", reg_password) Intent.putExtra("username", reg_username) ![]() Intent intent = new Intent(Register2.this, PhoneNumberOtp.class) ![]() second activity transfer data last activity Intent intent = new Intent(Register.this, Register2.class) first activity want transfer data last activity I want to send data from three activities to the last activity, how can I do
0 Comments
Leave a Reply. |