ZazoTazo

After Login Page Activity

Jul 22nd, 2019
466
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.66 KB | None | 0 0
  1. public class Main2Activity extends AppCompatActivity
  2. {
  3.  
  4.     TextView Name, Password;
  5.  
  6.     @Override
  7.     protected void onCreate(Bundle savedInstanceState)
  8.     {
  9.         super.onCreate(savedInstanceState);
  10.         setContentView(R.layout.activity_main2);
  11.  
  12.         Bundle bundle = getIntent().getExtras();
  13.         String name = bundle.getString("Name");
  14.         String password = String.valueOf(bundle.getInt("Password"));
  15.         Name = findViewById(R.id.textView2);
  16.         Password = findViewById(R.id.textView3);
  17.  
  18.         Name.setText("Welcome ");
  19.         Name.append(name);
  20.         Password.setText("Password: ");
  21.         Password.append(password);
  22.     }
Advertisement
Add Comment
Please, Sign In to add comment