Search in sources :

Example 1 with LoginTestThread

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();
}
Also used : EditText(android.widget.EditText) LoginTestThread(com.googlecode.asmack.sync.LoginTestThread)

Aggregations

EditText (android.widget.EditText)1 LoginTestThread (com.googlecode.asmack.sync.LoginTestThread)1