Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Login a user using Parse API

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 294
    Comment on it

    In ParseUser class there is method with name "logInInBackground" which provides a login API to ther user. This method contains three parameter "username", "password" and "LogInCallback" interface.

      ParseUser.logInInBackground("username", "password", new LogInCallback() {
          public void done(ParseUser user, ParseException e) {
            if (user != null) {
              // Hooray! The user is logged in.
              // User logged in successfully
             // call Home Activity
             Intent intent = new Intent(LoginActivity.this, HomeActivity.class);
             startActivity(intent);
            } else {
              // Signup failed. Look at the ParseException to see what happened.
              // Show Alert of exception
            }
          }
        });
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: