Advertisement
Guest User

Untitled

a guest
Mar 5th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. @Override
  2. protected void onCreate(Bundle savedInstanceState) {
  3. super.onCreate(savedInstanceState);
  4. setContentView(R.layout.activity_login);
  5.  
  6. final EditText etUserName = (EditText) findViewById(R.id.etUserName);
  7. final EditText etPassword = (EditText) findViewById(R.id.etPassword);
  8. final Button bLogin = (Button) findViewById(R.id.bLogin);
  9. final TextView registerLink = (TextView) findViewById(R.id.tvRegisterHere);
  10.  
  11. registerLink.setOnClickListener(new View.OnClickListener()
  12. {
  13. @Override
  14. public void OnCLick(View V)
  15. {
  16. Intent registerIntent =new Intent(LoginActivity.this,RegisterActivity.class);
  17. RegisterActivity.this.startActivity(registerIntent);
  18.  
  19. }
  20. }
  21. }};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement