12 thoughts on “Google Login Android using Firebase Tutorial”

  1. how to generate automated email or text message on mobile number. what i want is whenever there is a new user registration ,the username and password should be either mailed or texted to the number(without using any carrier service).

    reply soon,
    thanks,
    newbie

    Reply
  2. if (mAuth.getCurrentUser() == null) {
    finish();
    startActivity(new Intent(this, MainActivity.class));
    }
    }
    }

    When the last authentication is completed, the moving code may need to be modified

    As a ProfileActivity, not as the MainActivity

    Thank you for your lecture.

    Reply
  3. can you help me with sign out of google.
    i am using my sign out btn in navigation drawer it does not work.

    Reply
    • @Override
      public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {
      drawerLayout.closeDrawer(GravityCompat.START);
      if(menuItem.getItemId() == R.id.post){
      Toast.makeText(this, “This is post here”, Toast.LENGTH_SHORT).show();
      Intent i = new Intent(MainActivity.this, MyPostActivity.class);
      startActivity(i);
      }
      if(menuItem.getItemId() == R.id.search){
      Toast.makeText(this, “This is post here”, Toast.LENGTH_SHORT).show();
      Intent i = new Intent(MainActivity.this, SearchActivity.class);
      startActivity(i);
      }
      if(menuItem.getItemId() == R.id.logout){
      signOut();
      }
      return true;
      }
      //This is the signout method here
      private void signOut() {
      mGoogleSignInClient.signOut()
      .addOnCompleteListener(this, new OnCompleteListener() {
      @Override
      public void onComplete(@NonNull Task task) {
      Toast.makeText(MainActivity.this, “Signout Sucessfully”, Toast.LENGTH_SHORT).show();
      finish();
      }
      });
      }

      Reply
    • Sit this is working only test time but I will be generated singapk after this is not working please help me for this reply please…

      Reply
  4. Sit this is working only test time but I will be generated singapk after this is not working please help me for this reply please…

    Reply

Leave a Comment