Created
May 28, 2010 15:02
-
-
Save skyler/417262 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void login(String username, String password) | |
{ | |
LoginCredentials creds = new LoginCredentials(username, password); | |
AsyncAPI.getInstance().login(creds, new ITaskCallback() { | |
@Override | |
public void onResult(AbstractRunnable task) | |
{ | |
boolean success = task.getResult(); | |
if (success) { | |
Login.this.runOnUiThread(new Runnable() { | |
@Override | |
public void run() | |
{ | |
loginDialog.dismiss(); | |
} | |
}); | |
Intent intent = new Intent(Login.this, Home.class); | |
startActivity(intent); | |
finish(); | |
} | |
} | |
@Override | |
public void onError() | |
{ | |
// | |
} | |
}); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment