Created
April 26, 2012 16:03
-
-
Save pencilcheck/2500597 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
facebook.authorize(this, new String[] {}, new DialogListener() { | |
@Override | |
public void onComplete(Bundle values) { | |
Intent gamelist = new Intent(LoginActivity.this, GameListActivity.class); | |
startActivity(gamelist); | |
} | |
@Override | |
public void onFacebookError(FacebookError error) { | |
vars.createToast(error.toString()); | |
mLoginButton.setEnabled(true); | |
} | |
@Override | |
public void onError(DialogError e) { | |
vars.createToast(e.toString()); | |
mLoginButton.setEnabled(true); | |
} | |
@Override | |
public void onCancel() { | |
vars.createToast("Login cancelled"); | |
mLoginButton.setEnabled(true); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment