Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Android Parse.com Simple SignIn

    • 0
    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 259
    Comment on it

    Hi,

    Here I am writing simple way to login after creating user in parse.

    Tutorial for Sign Up
    ParseUser handles all sign in and sign up functionality.

    We login through logInInBackground() method of ParseUser. We need to pass username and password as arguments in this method.


    ParseUser.logInInBackground(userNameString, passwordString, new LogInCallback() {
                            public void done(ParseUser user, ParseException e) {
                                if (user != null) {
                                    // Hooray! The user is logged in.

    Intent intent = new Intent(HomeActivity.this, MainScreenActivity.class); startActivity(intent); finish(); } else { // Signup failed. Look at the ParseException to see what happened. Toast.makeText(getApplicationContext(), "Error >> "+e.getMessage(), Toast.LENGTH_SHORT).show(); } } });

 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: