Hardik Parsania

I am mobile app developer. I am always passionate about solving complex and real world problems.I have developed many apps with great interest and superior logical skills.

You may also like...

10 Responses

  1. Steve says:

    Good work, specially a logout demonstration helped a lot. It is difficult to find logout demo along with login demo on internet.

  2. krunal patel says:

    I try this code bt when click on logout button its only display Toast box then how i that user will be successfully logout from application?

    • Hardik Parsania says:

      this is logout buttons onclick method
      btn.setOnClickListener(new View.OnClickListener() {
      public void onClick(View v) {
      new ResultCallback() {
      public void onResult(Status status) {
      Toast.makeText(MainActivity.this, “Logout Successfully!”, Toast.LENGTH_SHORT).show();

      check it carefully, it first logout user then shows toast. If user is logout and then he clicks on sign in button, app will ask him to choose google account. If user is login already then app does not ask for choosing account and directly fetches name, email etc info. You check this scenario in output video as well.

  3. vishal says:

    how to maintain a session using google plus login.

  4. rahul says:

    i want to login gmail entering username and password manually in android please help me

  5. Dilip kumar says:

    i m getting error on plus and person how to solve this???????????

  6. Abhishek phalke says:

    if login is successful how to name and image show in textview and imageview in next activity in textview show user name and user image show in image view but in next activity please help me ?

    • Hardik Parsania says:

      String name = acct.getDisplayName();
      You can use above string variable to send name in nextactivity
      acct.getPhotoUrl().toString() // use this line to get uri of photo in string variable and use this string variable to pass in next activity.
      Both coding lines are from handleSignInResult() method.

Leave a Reply

Your email address will not be published. Required fields are marked *