Professional Documents
Culture Documents
- GeeksforGeeks
Build, deploy and scale apps quickly using App GET $100 FREE CREDIT
Platform, DigitalOcean's fully managed solution. HIDE AD • AD VIA BUYSELLADS
In many apps, we got a feature to login using our email and password. Sometimes it
happens that we forget the password and most of the time there reset our password.
Here we are going to implement the same feature to Reset our password using
Firebase Authentication. You may refer to the following ar ticle User authentication
using Firebase in Android. A sample video is given below to get an idea about what we
are going to do in this ar ticle. Note that we are going to implement this project using
the Java language.
00:00 00:57
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that
Go to the activity_login.xml file and refer to the following code. Below is the code for
you have read and understood our
Cookie Policy &
Privacy Policy
▲
the activity_login.xml file.
Got It !
https://www.geeksforgeeks.org/how-to-change-password-of-user-in-android-using-firebase/ 1/9
19/06/2021 How to Change Password of User in Android using Firebase? - GeeksforGeeks
Build, deploy and scale apps quickly using App GET $100 FREE CREDIT
Platform, DigitalOcean's fully managed solution.
XML
Go to the LoginActivity.java file and refer to the following code. Below is the code for
Java
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.text.InputType;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that
import com.google.android.gms.tasks.OnCompleteListener;
you have read and understood our
Cookie Policy &
Privacy Policy
import com.google.android.gms.tasks.OnFailureListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.auth.AuthResult;
Got It !
▲
https://www.geeksforgeeks.org/how-to-change-password-of-user-in-android-using-firebase/ 3/9
19/06/2021 How to Change Password of User in Android using Firebase? - GeeksforGeeks
Output :
00:00 00:57
Attention reader! Don’t stop learning now. Get hold of all the impor tant Java
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that
Foundation and Collectionsyou have readconcepts
and understood our
Cookie
with Policy &
Privacy Policy
the Fundamentals of Java and Java
Got It !
▲
Collections Course at a student-friendly price and become industr y ready. To complete
https://www.geeksforgeeks.org/how-to-change-password-of-user-in-android-using-firebase/ 6/9
19/06/2021 How to Change Password of User in Android using Firebase? - GeeksforGeeks
Like 0
Previous Next
ADVERTISEMENT BY ADRECOVER
10, Mar 21
Got It !
▲
https://www.geeksforgeeks.org/how-to-change-password-of-user-in-android-using-firebase/ 7/9
19/06/2021 How to Change Password of User in Android using Firebase? - GeeksforGeeks
Ar ticle Contributed By :
annianni
@annianni
Current difficulty :
Hard
Load Comments
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that
ADVERTISEMENT BY ADRECOVER you have read and understood our
Cookie Policy &
Privacy Policy
Got It !
▲
https://www.geeksforgeeks.org/how-to-change-password-of-user-in-android-using-firebase/ 8/9
19/06/2021 How to Change Password of User in Android using Firebase? - GeeksforGeeks
Build, deploy and scale apps quickly using App GET $100 FREE CREDIT
Platform, DigitalOcean's fully managed solution. HIDE AD • AD VIA BUYSELLADS
Company Learn
About Us Algorithms
Careers Data Structures
Privacy Policy Languages
Contact Us CS
Subjects
Copyright Policy Video Tutorials
Practice Contribute
Courses Write an Article
Company-wise Write Interview
Experience
Topic-wise Internships
How to begin? Videos
@geeksforgeeks
, Some rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that
you have read and understood our
Cookie Policy &
Privacy Policy
Got It !
▲
https://www.geeksforgeeks.org/how-to-change-password-of-user-in-android-using-firebase/ 9/9