I have integrated my application in Parse.com for Facebook and Twitter login.
After login is successful I take user to main screen. However after login from facebook or twitter it comes back to login screen and waits for few seconds before going to main screen. How to avoid wait. Please help. Following is my twitter and facebook login
ParseTwitterUtils.logIn(MyActivity.this, new LogInCallback() {
@Override
public void done(ParseUser user, ParseException exception) {
// my code
// start new activity on success
}
});
ParseFacebookUtils.logIn(permissions, MyActivity.this,
new LogInCallback() {
@Override
public void done(final ParseUser user,
ParseException exception) {
// my code
// start new activity on success
}
});
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
// TODO Auto-generated method stub
super.onActivityResult(requestCode, resultCode, data);
ParseFacebookUtils.finishAuthentication(requestCode, resultCode, data);
}
Aucun commentaire:
Enregistrer un commentaire