Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main2Activity extends AppCompatActivity
- {
- TextView Name, Password;
- @Override
- protected void onCreate(Bundle savedInstanceState)
- {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main2);
- Bundle bundle = getIntent().getExtras();
- String name = bundle.getString("Name");
- String password = String.valueOf(bundle.getInt("Password"));
- Name = findViewById(R.id.textView2);
- Password = findViewById(R.id.textView3);
- Name.setText("Welcome ");
- Name.append(name);
- Password.setText("Password: ");
- Password.append(password);
- }
Advertisement
Add Comment
Please, Sign In to add comment