@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_login);

    getActionBar().hide();
  }
Beispiel #2
0
  @Override
  protected void onResume() {
    // TODO Auto-generated method stub
    super.onResume();
    setUpViews();
    if (getClient().isAuthenticated()) {
      btnSignin.setVisibility(View.INVISIBLE);
      llLoading.setVisibility(View.VISIBLE);
      getProfileInfo();
    }
    //		loginToExpense();

  }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_login);

    EditText etPassword = (EditText) findViewById(R.id.etPassword);
    etPassword.setOnEditorActionListener(
        new TextView.OnEditorActionListener() {
          public boolean onEditorAction(TextView exampleView, int actionId, KeyEvent event) {
            if (actionId == EditorInfo.IME_ACTION_DONE
                || actionId == EditorInfo.IME_NULL
                || event.getKeyCode() == KeyEvent.KEYCODE_ENTER) {

              loginToRest();
              return true;
            } else {
              return false;
            }
          }
        });
  }