use of com.googlecode.asmack.sync.LoginTestThread in project AsmackService by rtreffer.
the class AuthenticatorActivity method handleLogin.
/**
* Handle a login attempt by starting the login thread and showing a wait
* dialog.
* @param view The base view, ignored.
*/
public void handleLogin(View view) {
showDialog(0);
EditText usernameEdit = (EditText) findViewById(R.id.username_edit);
EditText passwordEdit = (EditText) findViewById(R.id.password_edit);
String username = usernameEdit.getText().toString();
String password = passwordEdit.getText().toString();
loginTestThread = new LoginTestThread(username, password, handler, this);
loginTestThread.start();
}
Aggregations