In this activity a user can enter his name and password to login or click a button to logout. More...
Public Member Functions | |
void | onBackPressed () |
Lead to MainActivity if PopUp.loginFail happened before. | |
boolean | onCreateOptionsMenu (Menu menu) |
Shows the menu. | |
void | onLoginButtonClick (View view) |
Is used if LoginButton is clicked. More... | |
void | onLogoutButtonClick (View view) |
Is used if LogoutButton is clicked. More... | |
boolean | onOptionsItemSelected (MenuItem item) |
Handles clicks on a menu-item and switches to other activity, depending on which item was clicked. | |
void | onChangeUserButtonClick (View view) |
Is used if ChangeUserButton is clicked. More... | |
Protected Member Functions | |
void | onCreate (Bundle savedInstanceState) |
Shows Layout and depending on whether the user is logged in or not the logout- oder login-button. | |
In this activity a user can enter his name and password to login or click a button to logout.
void unicopa.copa.app.gui.LoginActivity.onChangeUserButtonClick | ( | View | view) |
Is used if ChangeUserButton is clicked.
Does the necessary steps to change the user if its possible. Informs the user about the other necessary steps.
view |
void unicopa.copa.app.gui.LoginActivity.onLoginButtonClick | ( | View | view) |
Is used if LoginButton is clicked.
Calls the ServerConnection.login method and logs in the user.If it was successful switches back to MainActivity and changes layout of Login before, so that its correct if the backbutton is pressed.
view |
void unicopa.copa.app.gui.LoginActivity.onLogoutButtonClick | ( | View | view) |
Is used if LogoutButton is clicked.
Calls the ServerConnection.logout method and logs out the user. If it was successful switches back to MainActivity and changes layout of Login before, so that its correct if the backbutton is pressed.
view |