Getting Started with the Firebase Realtime Database on Android - Firecasts

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

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

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

    PLEASE ! *MORE TUTORIAL WITH ANDROID*

  • @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!

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

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

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

    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.

  • @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 !)

  • @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

  • @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!

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

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

  • @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)

  • @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??

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

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

  • @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 =)

  • @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 ?

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

    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.

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

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

  • @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

  • @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.

  • @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!

  • @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

  • @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?

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

    Yeah, make a video using the firebase storage

  • @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.

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

    Please create a video using firebase storage

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

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

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

    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.......>???

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

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

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

    Very good introduction to the database !

  • @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

  • @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?

  • @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?

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

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

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

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

  • @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.

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

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

  • @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?

  • @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.

  • @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??

  • @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?

  • @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.

  • @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???

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

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

  • @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

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

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

  • @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

  • @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

  • @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???

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

    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?

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

    Very easy to understand, thanks

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

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

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

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

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

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

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

    Awesome explained.

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

    compile 'com.google.firebase:firebase-core:9.0.0'
    compile 'com.google.firebase:firebase-database:9.0.0'
    These 2 lines are giving me a failed to resolved error. What do I do?

  • @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)

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

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

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

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

  • @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

  • @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

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

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

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

    Can I write a rule that "if Realtime Database value changes it will immediately send a popup to the client"

  • @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

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

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

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

    Hello David!
    I am creating an android app in which I need to modify specific user detail in the database.
    I am using the push() function to add the user data in the database. Now when I need to parse the data , how can I refer to the auto generated key to modify the details in the json tree?

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

      you will probably have to get all the user data, and then search. By using the push feature, you basically let go of the ability to give meaningful key-names to your data

  • @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?

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

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

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

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

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

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

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

    do you have a blog for this tutorial?

  • @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);

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

    Can we save a date on firebase?

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

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

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

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

  • @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 ??????

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

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

  • @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

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

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

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

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

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

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

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

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

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

    How to send Notifications to the user when Realtime database gets updated

  • @SanketPatil-lp2gj
    @SanketPatil-lp2gj 8 лет назад +1

    how to add multiple data into firebase without removing previous one..?

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

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

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

    why it is used :
    Databasereference mRootRef = FirebaseDataBase.getInstance().getReference();
    in the video but at firebase.com in docs they use:
    Firebase rootRef = new Firebase("docs-examples.firebaseio.com/web/data");
    -what's the difference ?when we should use 1st one & when the 2nd one?? :S

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

    how to search nearby distance with firebase by longitude?

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

    You guys are great!

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

    When i remove "DatabaseReference scoresRef = FirebaseDatabase.getInstance().getReference("scores");
    scoresRef.keepSynced(true);"
    This then working But i am using this to Save Permanent Data Offline

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

    What if I want authentication users to have their own tree in a database?

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

    Can anyone tell me how to apply pagination (AKA infinite scroll) in our app through FireBase??

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

    Very good material indeed!

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

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

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

    i did not got to know how is the app is connected to ur firebase account ...
    reply soon

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

    I am using Android studio to develop Android app. I can not find library dependencies: com.google.firebase:firebase-database:9.0.0. in File/Project Structure ? Could anybody explain help me resolve it ?

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

      if you havent solved this you would need to update to "com.google.firebase:firebase-database:10.0.1"
      so got to Gradle Scripts > build.gradle(Module:app) : then
      then go to the dependencies section and it should look like:
      dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
      exclude group: 'com.android.support', module: 'support-annotations'
      })
      compile 'com.google.firebase:firebase-auth:10.0.1'
      compile 'com.google.firebase:firebase-database:10.0.1'
      }
      //theres a good guide here: firebase.google.com/docs/android/setup

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

    dude what tablet you using

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

    what is name of this software that r u using?

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

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

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

      The connection part is not shown in the video here is the link -
      developer.android.com/studio/write/firebase

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

    unrelated to firebase, but how do you make a video like this?

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

      I'm commenting so i will get notified when someone answers this question.

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

      On a Mac, you can use iMovie to add the images into the video and use QuickTime Player to record your screen and also record audio during the screen recording. Screen recording on a Mac is very straightforward. I was able to do one for a college group project demo video that we had to submit as one of our assignments.

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

    hello, can we store pdf files in real time database and retrieve them in our app?

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

      you can store them in your Storage Database instead of Realtime Database

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

    #AskFirebase Hello, pleas make more videos, with content more complex. For example, persistind data objects in a real time. Editing this datas and editing also in real time database.