How to Add or Integrate Your Android Project to the Firebase ?

Hello Guys. In this blog, I am going to show how to add or integrate your android project to the firebase. So, Let's get started.


If you want to have a look at how our application will look and work, then check out my youtube video. The link is given below.




Watch my YouTube Video for more clarity about how to add an android project to the Firebase. 



Do like, comments on my video, and do subscribe to my YouTube Channel.


Step 1:-

Create a new project in Android Studio and select an empty activity and Click "Next".




Step 2:-

Give the name of the project as per your Requirement. I am giving "Demo_Project". Click "Finish".




Step 3:-

Go to Tools -> Click on “Firebase”.




Step 4:-

1. The  Firebase Assistant window is open. Expand “Authentication” option and click on “Email and Password Authentication”.




Step 5:-

Click on “Connect to Firebase”.





Step 6:-

Firebase console will get open in the browser. Click on “Add Project” to add the newly created project “Demo Project” in firebase. For you, the project name can be different. Enter your project name and click “Continue”.



Step 7:-

Accept all the terms and Click "Create Project". Once the project gets created, Click "Continue".




Step 8:-

Click on “Connect” and now your android project is connected to firebase. Now go back to your Android Studio for further configurations.




Step 9:-

1Now again go to your android studio project, click on “Add Firebase Authentication to your app” and click on “Accept Changes”.



The following changes are added to your project.

   

   In the build.gradle file of the app:-

1. apply plugin: 'com.google.gms.google-services'
2. dependencies {
    implementation 'com.google.firebase:firebase-auth:19.4.0'
}

In build.gradle file of project,
dependencies {
classpath "com.android.tools.build:gradle:4.0.1"
classpath 'com.google.gms:google-services:4.3.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}

Step 10:-

Now to enable email authentication, again go to the firebase console of your newly created project and click on "Authentication". 





Step 11:-

Go to the “Sign-In Method” tab and Enable the Email/password option for future Use.








Now the "Email/Password" feature is enabled for your project. In the next Video/Blog, I am going to create a Login and Registration activity using this feature.



For more posts, follow my blog.

You can follow me on Instagram:- http://instagram.com/vaibhavu3u


























Comments

Post a Comment

Popular posts from this blog

How to Create a Login Page Activity in Android using the Firebase ?