Getting Started with the Firebase Realtime Database on Android - Firecasts

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024
  • David East from the Firebase team shows you everything you need to know to get started with Android and the Realtime Database.
    First we learn how to get setup with the Realtime Database and then we go over the basics of the Realtime Database by building an app.
    After that you’ll know everything you need to know to get started in just a few minutes!
    Find out more at goo.gl/fvOY2y
    Add the Introducing Firebase playlist! goo.gl/Wdcxpt
    Subscribe to the brand new Firebase Channel: goo.gl/9giPHG
    Music by terramonk.com

Комментарии • 211

  • @SteveMarty
    @SteveMarty 8 лет назад +5

    Amazingly easy, i just was learning how to do this on my own hosted mysql database and it was so much more complicated. Good job Firebase team!

    • @davideast4360
      @davideast4360 8 лет назад

      +Steve Marty Boom goes the dynamite!

  • @Guihgo
    @Guihgo 8 лет назад +50

    PLEASE ! *MORE TUTORIAL WITH ANDROID*

  • @vishudhps
    @vishudhps 8 лет назад

    Thanks Davi, Learning from people who are engaged in building/updating the Firebase really boosts our confidence

  • @TheMQuran
    @TheMQuran 6 лет назад

    The best and easiest help to get started with firebase database.

  • @pudgystump
    @pudgystump 8 лет назад

    I would like to see more in-depth tutorials regarding the realtime, NoSQL. How to setup user specific data vs public data... etc. For me, this has been the hardest obstacle and what is holding me back from fully embracing Firebase.

  • @manitraberthonraoilison8671
    @manitraberthonraoilison8671 6 месяцев назад

    Very easy to understand, thanks

  • @HappyGiftGames
    @HappyGiftGames 3 года назад

    Awesome explained.

  • @ankurjoshi9545
    @ankurjoshi9545 8 лет назад +6

    how to add new node to the database instead of value???

  • @eduardodelcorrallira529
    @eduardodelcorrallira529 5 лет назад

    Small pointer, if you find yourselves stuck trying to connect to the database and the Simulator seems to have no problems with it ... That means you're using Cloud Firestore so switch to Realtime Database (it was the only one that existed when this video was made). Hope it helps!

  • @JontyCawleyGraham
    @JontyCawleyGraham 8 лет назад +2

    Hey David, not sure if you still check these comments but regardless I have a question. I was just wondering if it uses a lot of mobile data to be constantly checking a database for any changes while the app is running? Cheers.

    • @davideast4360
      @davideast4360 8 лет назад

      Hey Jonty! It solely depends on the size of the data. If the node you are synchronizing is 4kb is size, it will cost 4kb for the initial download and then the Realtime Database will try to do delta updates after that download. So the real answer is, it depends on what you are downloading. Most of the time it's not a problem, but make sure to test this in your app to be sure!

  • @firespark804
    @firespark804 6 лет назад

    Very good introduction to the database !

  • @eralpsahin
    @eralpsahin 8 лет назад +4

    Am I missing something? Where did you give the URL of the database? Apparently in the new API you don't need to specify the URL since the URL is automatically determined from the new google-services.json file you downloaded, but you did not mention that too.

    • @davideast4360
      @davideast4360 8 лет назад +3

      +Eralp Şahin Good point! I probably should have pointed to it in the project structure. We're trying to keep these focused on just the specific SDKs. We'll soon have an overview video on the general Firebase setup which will include downloading the google-services.json file.

    • @MusicLyf4
      @MusicLyf4 4 года назад

      Thank you for this

  • @alexmuhich3200
    @alexmuhich3200 7 лет назад

    Thank you for doing this video. It was super helpful.

  • @hamzabouk5982
    @hamzabouk5982 8 лет назад

    Hey there ,
    i am not sure if you still checking out these comments so hope u do, anyway the way firebase works make it impossible to retrive data while there is no changes , in my case i update some info from time to time , so basicly whenever i fire up the app I dont have any info showing untill i do some updates which does seems logic ( there must be a way to see available data even like rational database and quieries !)

  • @davedukuvni7823
    @davedukuvni7823 8 лет назад +14

    Stupid question: Why is he putting the code in onStart()?

    • @tellvivk
      @tellvivk 7 лет назад +17

      onStart() will be called only after onCreate() and it is recommended to put all network/resource intensive operation in onStart() to prevent the screen from freezing (ANRs)

    • @shettyvn
      @shettyvn 7 лет назад +1

      He is just updating UI. UI will be visible to the user only after onStart().

    • @XxMobileWizXx
      @XxMobileWizXx 7 лет назад +3

      How does Firebase know what real time database to connect to? how do i make it connect to my database?

    • @ani110
      @ani110 7 лет назад +2

      DatabaseReference mDataRef = FirebaseDatabase.getInstance().getReferenceFromUrl("YOURURLHERE");

    • @XxMobileWizXx
      @XxMobileWizXx 7 лет назад

      Thx

  • @lonewolf2547
    @lonewolf2547 8 лет назад

    its super simple....thanx alot guyz....

  • @adityamarathe6611
    @adityamarathe6611 7 лет назад +6

    I have question :: If anyone can help me
    How to add a recyclerview with real time databse and when a item of recyclerview is clicked it show up next activity which show detailed info of that item

    • @SKREFI
      @SKREFI 5 лет назад

      Hmm, this is what I need to implement now in my app. I am working at a functional google play store clone, and the thing is I have a nested recycler view =))
      Did you solve your problem (since that was a year ago)?
      I think firebase storage is a better option instead of the realtime db.

  • @amineboujida1276
    @amineboujida1276 8 лет назад

    Hello I want to thank you first for this clear video ,
    I'm building an app with a 5 predefined users(My family) , there will be a data exchanging between this 5 users through a database connected to internet(I hope firbase can do this)
    Now i want to set 5 data files for each User(each files will contain data that the user will control)
    so for each user it will be a view which depends on data on his files and those data files will be changed after a user set a change through My App.
    Thank you =)

  • @thiagolopessilva
    @thiagolopessilva 8 лет назад

    Thanks for this great video. I will use this solution on a small app.

  • @Mrsonicthunder
    @Mrsonicthunder 8 лет назад +1

    You guys are great!

  • @jeetsingh575
    @jeetsingh575 8 лет назад +2

    Hello, I have two devices with two different apps and I want to send the notification from one app to other, both apps are sharing the same database. How can I do that with FCM??

  • @MShahidNiazi
    @MShahidNiazi 4 года назад

    thanks.. solve my a lots of problem....

  • @fernandoluis53
    @fernandoluis53 7 лет назад

    Good video, could you please refer to the previous video? Or like the very first tutorial, bc I'm building an app and i googled databases for android and i got here. But I don't know where to start with firebase (like setting up on my computer, inner workings, etc)

  • @prem9365
    @prem9365 7 лет назад +1

    #authentication.......I want to learn more about it.

  • @jsebastian211
    @jsebastian211 7 лет назад

    Maybe is a dumb question:
    but that kind of database can replace the regular BD's like postgresBD, MySQL and others, is good use the firebase realtime database if i have a huge size of data or only should use in special cases.
    Thanks in advance and greetings from Colombia

  • @BryanPaijit
    @BryanPaijit 7 лет назад

    What tablet were you using in this demo? And what screencast tools did you use to get your hand overlay to show you writing on the screen.

  • @thiagosoaress2
    @thiagosoaress2 6 лет назад

    Very good material indeed!

    • @kumarshivang4431
      @kumarshivang4431 6 лет назад

      Try everything in this tutorial using Firebase Database Admin Manager - RTDB Manipulator
      play.google.com/store/apps/details?id=com.shivang.managefirebasedatabase.free

  • @mohitmahajan1947
    @mohitmahajan1947 4 года назад

    what is the difference between Idtoken() and Uid in firebase? (regarding Google Sign in)
    which one should I use in firebase realtime database to store data according to user identity.
    I am using android studio with java.

  • @GermanHard
    @GermanHard 5 лет назад

    Nice video thanks

  • @tanishqsingh4
    @tanishqsingh4 8 лет назад

    Please create videos on how to store user data from auth providers..

  • @jirapongbualuang1373
    @jirapongbualuang1373 7 лет назад

    Great tutorial, Thank you.

  • @siddimania
    @siddimania 8 лет назад

    You're updating the value and then getting through addValueEventListener but suppose if we just want only the value from the database ?

  • @chandunerella
    @chandunerella 8 лет назад +5

    Please create a video using firebase storage

  • @GideonKiprotich665
    @GideonKiprotich665 7 лет назад

    Please do a tutorial on Retrieving data from firebase and showing them in Listview

  • @ashikvarma5460
    @ashikvarma5460 7 лет назад

    How can i provide notifications to android while on data change in firebase

    • @dougstevenson3769
      @dougstevenson3769 7 лет назад

      You can now use Cloud Functions for Firebase for this: firebase.google.com/docs/functions/
      Sample code: github.com/firebase/functions-samples/tree/master/fcm-notifications

  • @nazaramin8635
    @nazaramin8635 3 года назад

    how about retrieving values for multiple keys to be used as dataset for chart?

  • @stevenspiel
    @stevenspiel 5 лет назад

    If the data flow is button -> firebase -> on-screen value, what happens when there is not internet connection?

  • @ahmedutuber
    @ahmedutuber 4 года назад

    I develop mobile application for Android, I want ask ,which better connect database by fire-base "Realtime or Authentication " ????

  • @Narendiranath
    @Narendiranath 4 года назад

    I want to save data based the user. For ex. If iam one of the user if like banana it should saved under my id. Another user likes Orange then when he sign in to the app Orange should be displayed. Let me know your suggestion. Thanks

  • @mrunalahirao9256
    @mrunalahirao9256 8 лет назад

    Hi david, nice tutorial. I wanted to know how can I query data irrespective of data changed? How can I retrieve data as when I need it?

  • @InnovatorAlvin
    @InnovatorAlvin 8 лет назад

    how do I query data with multiple where clause? i'm new to Firebase database and have been working only on relational database hence the question. a video covering the topic of my question will be of great help. thanks!

  • @FisheyLP
    @FisheyLP 8 лет назад +1

    great tutorial

  • @vyshnavramesh9305
    @vyshnavramesh9305 8 лет назад

    Hi David, are your previous videos on firebase recyclerview, listview still valid tutorials?

  • @chandunerella
    @chandunerella 8 лет назад

    Is there a way to allow users to search the database and get the corresponding data value like entering a persons name and getting phone number???

  • @etelot
    @etelot 4 года назад

    Can you update this to the 2020 look? It does not look like this anymore, and I am just starting to learn it, so I do not know what is what compare to this. Thanks.

  • @amjadkhan1058
    @amjadkhan1058 7 лет назад

    Hi David,
    i want to know that how we can create database/table in firebase and then how we can retrieve a data from the app.......>???

  • @samstoyroom
    @samstoyroom 4 года назад

    Why put "valueChangeListener" inside "onStart()" instead of "onCreate()"?

  • @montysahil
    @montysahil 7 лет назад

    Okay. I was able to retrieve data. I am sure about it as I set Log for it. Am also able to assign it to another String object. But, am not able to use it to set text of a TextView. Please help.

  • @educatingmoney1504
    @educatingmoney1504 7 лет назад

    What if we had to retrieve a timestamp from the database into a textview instead? Is it the same process?

  • @Mohanazh
    @Mohanazh 7 лет назад

    Can Firebase store and retrieve data like relational model like adding constraint to the table?

  • @aribyousuf
    @aribyousuf 8 лет назад

    Can i create a management system like app with firebase that have crud operations???

  • @MaxLohMusic
    @MaxLohMusic 7 лет назад

    What is the best way to get a .csv into a very simple database in firebase if I don't need it to be synced with users?

  • @mintesnotalemayehu2153
    @mintesnotalemayehu2153 4 года назад

    I did all what you have shown.................But no change on the emulator while I write on the firebase..............why?

  • @towpyparaguay298
    @towpyparaguay298 7 лет назад

    Please Tutorial about how to use Query class to retrieve data.

  • @dummyriser6741
    @dummyriser6741 7 лет назад

    is it also possible for a countdown timer in the firebase? like the timer is counting down inside the database?

    • @ChandKiranSingh
      @ChandKiranSingh 6 лет назад

      Instead of a timer in firebase you can use it in your java code just sync it with the firebase
      final Handler handler = new Handler();
      handler.postDelayed(new Runnable() {
      @Override
      public void run() {
      //Do something after 100ms
      }
      }, 100);

  • @princetanweer3877
    @princetanweer3877 7 лет назад

    How does your app know what's your fiirebase account from where the data is to be fetched? I didn't see you initializing this thing.

    • @dougstevenson3769
      @dougstevenson3769 7 лет назад

      Initialization of all Firebase features on Android typically happens through a build configuration documented here: firebase.google.com/docs/android/setup

  • @ilozeet
    @ilozeet 7 лет назад

    dude what tablet you using

  • @gowthamkarthick3761
    @gowthamkarthick3761 6 лет назад

    hi, is that possible to retrieve the particular field from the real time database table to an app?

  • @education_beauty
    @education_beauty 3 года назад

    Hello I am making my final year project I just need to know that when usler add 3 relatives then a message of confirmation should be sent to all relative the same message at one time kindly help me by giving code

  • @luisacabs1
    @luisacabs1 7 лет назад

    I don't understand how I connect this to my firebase, you don't put your firebase URL anywhere in the code... I'm missing something here

    • @nishanthpavurapu8508
      @nishanthpavurapu8508 7 лет назад

      google-services.json which you generate from firebase console has those information, you need to include it your project/app folder

  • @juancarlosortiz5479
    @juancarlosortiz5479 7 лет назад

    excelente explicación, gracias, ojala y puedan subir mas vídeos con subtitulos en español si fuese posible. Saludos

  • @lusca28
    @lusca28 7 лет назад

    Which changes speed the Database supports? I wanna a 1 hundred people change the value, is it works fine?

  • @preetsinghchhabra6117
    @preetsinghchhabra6117 7 лет назад

    Hello!
    i am making a multiplayer game using realtime database. whenever i click a button to drag a coin in one phone on the other phone the activity refreshes again and again without any errors. i have added to change the ui code in onDataChange . but the screen refreshes again and again.
    is it because of the issue of ui and firebase thread?
    Please help.

  • @MrGramatix
    @MrGramatix 8 лет назад

    I need help I am getting following error "Google Play services out of date. Requires 9683000 but found 8489470"

  • @hUgO6191
    @hUgO6191 7 лет назад

    How can I create a Database to a website? Everytime a website updates some info it sends the update to the app with the new story or whatever?

  • @ErrrWhat
    @ErrrWhat 6 лет назад

    Nice and cool.

  • @paulyganteodocio2969
    @paulyganteodocio2969 8 лет назад

    Need some help, how do i solve this error..
    Error:Execution failed for task ':app:processDebugGoogleServices'.
    > File google-services.json is missing. The Google Services Plugin cannot function without it.
    Searched Location:
    F:\FAST\app\src\debug\google-services.json
    F:\FAST\app\google-services.json

  • @shrutikasugandhi9667
    @shrutikasugandhi9667 7 лет назад

    #AskFirebase Can we store extremely large amount of data in this manner and provide access to users.??

  • @tosifkhan5048
    @tosifkhan5048 6 лет назад

    am using firebase to develop an android app which work somewhat as instagram but i am confussed that what if i use firebase to upload and download images as insta.. then their will be more bandwidth use and then the charges of firebase will be more. .. i want to ask how much it may cost and is it good to make such app on firebase behalf of monthly charges??

  • @alejandroarias1289
    @alejandroarias1289 8 лет назад

    thks very very easy ...

  • @MsDirgantara
    @MsDirgantara 6 лет назад

    how to search nearby distance with firebase by longitude?

  • @ABHISHAKESINGHIASPREP
    @ABHISHAKESINGHIASPREP 6 лет назад

    Hello Sir,
    There is some problem using this video. Please help to resolve it.
    Error:Failed to capture snapshot of output files for task 'transformClassesWithDexForDebug' property 'streamOutputFolder' during up-to-date check.
    > Failed to create MD5 hash file.

  • @AbuOmar1
    @AbuOmar1 4 года назад

    Can I ever dispense with classic databases and use Firebase forever?

  • @HammadKhanYT
    @HammadKhanYT 4 года назад

    Does this code even works now? It is 4 years old

  • @christianstaffone8428
    @christianstaffone8428 8 лет назад

    Great one

  • @vivektyagi181
    @vivektyagi181 6 лет назад

    Is it possible to alter data of android firebase realtime database from web server of app or any other method

  • @rouhollahmz
    @rouhollahmz 8 лет назад +1

    hello
    I'm from IRAN , And google doesn't let us to use all of the google!
    _
    and I want to know do we can use this "Firebase database" ?
    beacuse I saw the "IRAN" name in "firebase.google" for add an new app .
    Could you please answer my qustion?(:
    (I'm sorry for my speaking ... beacause I speak persian and I can't speak english well)

  • @andrewsduarte7104
    @andrewsduarte7104 8 лет назад

    Yeah, make a video using the firebase storage

  • @batru2515
    @batru2515 7 лет назад

    I'm doing a chat app with firebase, when I got value from firebase, it looks like this "{name="Ronaldo", text="I dont know"}. I knew it's not json data, so how can I get the name and text, and add the new one?

  • @sunshinelabz
    @sunshinelabz 4 года назад

    Sample code share...

  • @MrMomokawa
    @MrMomokawa 7 лет назад

    Hello, is it possible to send data from arduino (sensors data) to firebase database? if so please let me know how

  • @rjwhatsapp828
    @rjwhatsapp828 6 лет назад

    Sir, I have problem with my app
    my tree is like this
    java
    what is java
    topicName: what is java
    topicData : what is data
    Subtopic
    inheritance
    SubtopicName: inheritance
    SubtopicData:*****
    this is my structure in that subtopic can be multiple i have reference of subject that is java. and i can get data which is what is java and topicData using class. but how to retrieve subtopic or can u suggest me different structure please help

  • @user-pn5mk3fy1h
    @user-pn5mk3fy1h 6 лет назад

    got problem including google play services.
    my studio says it failed for '.app.processDebugGoogleServices'
    can you tell me why this happens???

  • @user-qs5qr3ng4n
    @user-qs5qr3ng4n 8 лет назад

    THANK YOU SO MUCH!

  • @cooldj2552
    @cooldj2552 5 лет назад

    appcompat-v7 generates error ! compile will soon expire > implementation replace it

  • @Krinjjwal
    @Krinjjwal 8 лет назад

    i tried to make an app looking your old videos now since i have updated my firebase database to legacy console i got lots of error.i also had updated my android studio to 2.1 and gradle to 2.10. now my app have lots of error.what should i do?should i start a new project or is there someway to manage those errors?

  • @rubenarielperezgonzalez
    @rubenarielperezgonzalez 5 лет назад

    how to make a join in android and firebase??

  • @divyankgupta4178
    @divyankgupta4178 7 лет назад

    Error:Execution failed for task ':app:processDebugGoogleServices'.
    > No matching client found for package name 'com.example.divyank.docline'
    what to do

  • @abhishekjaiswal2009
    @abhishekjaiswal2009 8 лет назад

    do you have a blog for this tutorial?

  • @sagorhasnat1982
    @sagorhasnat1982 6 лет назад

    what is name of this software that r u using?

  • @knowRahulj
    @knowRahulj 8 лет назад

    Hello, I am facing some difficulty in making database for saving user information like name phone number address etc. I don't know how to store that data which such that user can acccess his information and edit it anytime...
    Thanks in advance

  • @The0nlySplash
    @The0nlySplash 8 лет назад

    I made a firebase and set a tag "1484" to the value "1". I made the app read and writeable for non authenticated users. Still I cant access the database with my app I made with mit appinventor 2, can anyone help me?

  • @subhamdubeyinfo
    @subhamdubeyinfo 8 лет назад

    i got stuck here please help me someone
    im importing the library of
    import com.google.firebase.auth.FirebaseAuth;
    it shows cannot resolve symbol FirebaseAuth ??????

  • @clays7557
    @clays7557 6 лет назад

    Can we save a date on firebase?

  • @nibeditadas9202
    @nibeditadas9202 6 лет назад

    Thanks very much

  • @saifullahkhan4602
    @saifullahkhan4602 7 лет назад

    can you upload picture , make relational database using firebase ?? can make social mobile application .... ???

  • @valuationonline2195
    @valuationonline2195 8 лет назад

    thanx for the tutorial could you show mi how to retrieve numbers from a firebase realtime database

  • @iNewsGermany
    @iNewsGermany 8 лет назад

    Hey Firebase-Team, i would like to request a feature that is needed by many users of your realtime-databases.
    Incrementing a Value. Now, the only way to increment a value is to get the value, increment in on the device and store it again. If a single value is incremented by many different users at the same time, the value will be corrupted and jumps between values.
    Greetings, a happy user of your firebase realtime databases.

  • @mrjogilsang
    @mrjogilsang 7 лет назад

    simple and good! example!

  • @DushyantSuthardushyant30suthar
    @DushyantSuthardushyant30suthar 8 лет назад +1

    amazing amazing amazing