[Part-1] How to Make Login and Signup Screen | Setup project with FIREBASE in Android Studio| KOTLIN

194 Просмотры
Издатель
Firebase stores users’ credentials securely and redundantly. This separates sensitive user credentials from your application data, and focus on the user interface and experience for your app.
Firebase is super easy and quick to implement. There is no server-side configuration needed in the firebase. It provides a real-time update without using GCM and has autoscaling built-in.

We will build a simple login and signup screen using the Firebase Email & Password authentication in android studio using kotlin in this video.

Follow these steps to know How to Make login and signup screen and setup project with firebase in android studio using kotlin:-


1. Go to https://firebase.google.com/ and make an account to gain access to their console. Now create your project and give the package name of your project and integrate it with the Firebase.
2. Now go to your project dashboard, find the Auth, and click get started. Then Go set up your sign-in method and choose Email & Password and enable it.
3. Create a new project in Android Studio and then open AndroidManifest.xml and add the INTERNET permission to make network calls.
4. Now paste the google-services.json file to your project’s app folder and open the build.Gradle located in the project’s home directory and add firebase dependency.
5. Open app/build.Gradle and add firebase auth dependency and add apply plugin: ‘com.google.gms.google-services’
6. Create an activity named SignupActivity.java and add a particular code to the layout file activity_signup.xml.
7. Now Open SignupActivity.java and add the given code. Use the createUserWithEmailAndPassword() method to create a new user with email and password data.
8. Open AndroidManifest.xml and make SignupActivity temporarily as launcher activity and test the signup.
9. Now we’ll create another activity named LoginActivity.java to add the login screen and add the particular code to the layout file activity_login.xml to check the credentials created on the sign-up screen.
10. Open LoginActivity.java and do the required changes. Firebase will provide the signInWithEmailAndPassword() method to sign in the user.
11. To make the login screen as the first screen of your chat app, Open AndroidManifest.xml and make the LoginActivity.java as launcher activity
12. Run the project and log in with the credentials which you used while signing up.
13. Now Create another activity named ResetPasswordActivity.java and add the particular code in its layout file activity_reset_password.xml to add the feature of sending reset password email when required.
14. Open ResetPasswordActivity.java add the required code and use the sendPasswordResetEmail() method to send the password reset email.
15. Run the project to test the login, then signup and change password screens.
Watch more videos like a tutorial of How to Make login and signup screen and setup project with firebase in android studio at Game App Studio!:

https://www.youtube.com/watch?v=OnAOi0vhqz0&list=PLS4y_Rw77pB92QHfFuwUm9Qo-BmXw0L-S

Subscribe to our YouTube channel: https://www.youtube.com/channel/UCdcDeAbcmAYb-KqXZgHHowA

Visit us here: https://gameappstudio.com/

Follow us on Facebook: https://www.facebook.com/groups/gameappstudio

Hit Follow On Instagram: https://www.instagram.com/gameappstudio/

Would you like Game App Studio to speak at your school or organisation?

For info, contact us at https://gameappstudio.com/contact-us
Mail us at hello@gameappstudio.com
Категория
Язык программирования Kotlin
Комментариев нет.