Code example for EditText

Methods: getText

0
			signUp(); 
		} 
	} 
 
	private void logIn() { 
		if (!TextUtils.isEmpty(username.getText().toString())) {
			Intent i = new Intent(getActivity(), LoginProgress.class);
			i.putExtra("username", username.getText().toString());
			i.putExtra("password", password.getText().toString());
			startActivity(i);
		} 
	} 
 
	private void signUp() { 
		Intent i = new Intent(getActivity(), RegisterProgress.class);
		i.putExtra("username", register_username.getText().toString());
		i.putExtra("password", register_password.getText().toString());
		i.putExtra("email", register_email.getText().toString());
		startActivity(i);
	}