Advertisement
Guest User

act_java

a guest
Oct 31st, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. protected void onCreate(Bundle savedInstanceState) {
  2. super.onCreate(savedInstanceState);
  3. // Get the message from the intent
  4. Intent intent = getIntent();
  5. String ip_login = intent.getStringExtra(MainActivity.EXTRA_IP);
  6. String database_login = intent.getStringExtra(MainActivity.EXTRA_DB);
  7. String port_login = intent.getStringExtra(MainActivity.EXTRA_PORT);
  8. String username_login = intent.getStringExtra(MainActivity.EXTRA_USERNAME);
  9. String password_login = intent.getStringExtra(MainActivity.EXTRA_PASSWORD);
  10.  
  11. setContentView(R.layout.activity_login_attempt_view);
  12.  
  13. TextView edit_ip = (TextView) findViewById(R.id.edit_ip);
  14. edit_ip.setText(ip_login);
  15.  
  16. TextView edit_port = (TextView) findViewById(R.id.edit_port);
  17. edit_port.setText(port_login);
  18.  
  19. TextView edit_database = (TextView) findViewById(R.id.edit_database);
  20. edit_database.setText(database_login);
  21.  
  22. TextView edit_username = (TextView) findViewById(R.id.edit_username);
  23. edit_username.setText(username_login);
  24.  
  25. TextView edit_password = (TextView) findViewById(R.id.edit_password);
  26. edit_password.setText(password_login);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement