Android App Development | Lecture#40 | Hive Learners

๐“–๐“ป๐“ฎ๐“ฎ๐“ฝ๐“ฒ๐“ท๐“ฐ๐“ผ

Hi dear Hive Learners, In our 39th lecture we learn how to implement the on-button click listener using the interface in adapter class. We use the static data to populate the ListView. But from now we are going to learn how to save and fetch data from the firebase database. In this lecture, we will add the firebase dependencies and set up our project for a smooth run. So let's get started.

GitHub Link

Use this GitHub project to clone into your directory. The following lecture will constantly update it so you will never miss the latest code. Happy Coding!

What Should I Learn

  • How to add Firebase real-time database in the project

Assignment

  • Configure a real-time database in the project

Procedure

We will use the Firebase assistance to add the Firebase real-time database dependencies. It is the best way to configure our project. Follow this step to open Firebase Assistance. Make sure you are login into the Android Studio.

Now open the Realtime Database tab and click on Get Started as shown here.

If the Connect to Firebase button showing then you need to click on it and connect your app to Firebase. I am assuming that you already created a Firebase Project and on this button click, it will auto change in Connected state, When it is getting connected we need to click on the 2nd step button as shown here.

Choose your project from the Firebase Dashboard and it will open this screen click on connect.

Now our app is successfully connected with firebase. Click on add dependencies button.

Click on Accept Changes and wait for the Gradle sync.

You will see this message Dependencies set up correctly on a successful Gradle build. Congratulation Firebase Database is configured successfully. In the next lecture, we will send data to the firebase database.


hl_divider.png

Thank You

hl_footer_banner.png



0
0
0.000
7 comments
avatar

Interesting ! for that you don't need any coding!
!1UP

You can earn passive income by delegation of tribe tokens to "The Cartel".

dlmmqb-TheCartel-banner
Click this banner to join "The Cartel" discord server to know more.

0
0
0.000
avatar

Yeah that's the magic of Firebase Assistance

0
0
0.000
avatar

Thanks for your contribution to the STEMsocial community. Feel free to join us on discord to get to know the rest of us!

Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).

You may also include @stemsocial as a beneficiary of the rewards of this post to get a stronger support.ย 
ย 

0
0
0.000
avatar

Wow I think this is one of those advanced tutorials on Hive about random topics. Salute! It's hard to code though.

0
0
0.000
avatar

Congratulations @faisalamin! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s):

You made more than 900 comments.
Your next target is to reach 1000 comments.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Check out the last post from @hivebuzz:

Hivebuzz supports the HiveFestโท Travel Reimbursement Fund.
Our Hive Power Delegations to the July PUM Winners
0
0
0.000