Android Firebase Realtime Database Chat Application Part 1/2



In this tutorial we use Firebase cloud database to build the chat application. Users are able to create chat rooms, and then make conversations inside of them.

Github link: https://github.com/miskoajkula/Firebase-RealtimeDatabase-App-Example

☑ Visit fb page:
https://www.facebook.com/androidTuorialsAndNews

Related Posts
Cboard: A Progressive Web App for Everyone : Build 2018

Communication is crucial in our world, but it can be challenge for people living with autism, cerebral palsy, and other Read more

How to create a maven web project with eclipse

How to create a maven web project with eclipse

Display notifications – Progressive Web App Training

What's the best way to display popup notifications on mobile and desktop. This video shows how to use the Notification Read more

26 thoughts on “Android Firebase Realtime Database Chat Application Part 1/2”

  1. Pls sir I've downloaded ur video, I love it. I'm suggesting that u put an indicator or a snackmessage that will tell other users in the room that new user has joined the room or left the room

    Reply
  2. how to fixed this error : D/SQLiteDatabase: dispose database false
    java.lang.Throwable: stacktrace
    at android.database.sqlite.SQLiteDatabase.dispose(SQLiteDatabase.java:286)
    at android.database.sqlite.SQLiteDatabase.onAllReferencesReleased(SQLiteDatabase.java:280)
    at android.database.sqlite.SQLiteClosable.releaseReference(SQLiteClosable.java:74)
    at android.database.sqlite.SQLiteClosable.close(SQLiteClosable.java:106)
    at com.google.android.gms.internal.measurement.zzfe.zzp(Unknown Source)
    at com.google.android.gms.internal.measurement.zzik.zza(Unknown Source)
    at com.google.android.gms.internal.measurement.zzis.run(Unknown Source)
    at com.google.android.gms.internal.measurement.zzik.zzf(Unknown Source)
    at com.google.android.gms.internal.measurement.zzik.zzb(Unknown Source)
    at com.google.android.gms.internal.measurement.zzhm.zza(Unknown Source)
    at com.google.android.gms.internal.measurement.zzhm.zza(Unknown Source)
    at com.google.android.gms.internal.measurement.zzie.run(Unknown Source)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
    at java.util.concurrent.FutureTask.run(FutureTask.java:237)
    at com.google.android.gms.internal.measurement.zzgm.run(Unknown Source)
    I/Process: Sending signal. PID: 1389 SIG: 9
    Application terminated.

    Reply
  3. Hello Filip, Thanks for such nice video. I was able to sucessfully build an app…but is there any way I can show the current active users ??

    Reply
  4. Hello filip, how to store the username and when user open the activity then they will skip the set username and add button in toolbar layout untill and unless user want to change the Username. Please suggest.

    Reply
  5. Im having this error

    Error:Execution failed for task ':app:processDebugGoogleServices'.
    > Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 9.0.2.

    Please help

    Reply
  6. line no:-49
    arrayAdapter = new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,list_of_rooms);

    Can u plz resolve , from where the [android.R.layout.simple_list_item_1] came. I checked all the layout file but cannot find the solution.

    Reply
  7. Getting these errors!

    Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
    > com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/LICENSE
    File1: C:UsersAbhinav.gradlecachesmodules-2files-2.1com.fasterxml.jackson.corejackson-annotations2.7.019f42c154ffc689f40a77613bc32caeb17d744e3jackson-annotations-2.7.0.jar
    File2: C:UsersAbhinav.gradlecachesmodules-2files-2.1com.fasterxml.jackson.corejackson-databind2.7.284ffa765dd258dbab8695963c41308b054f3a1cbjackson-databind-2.7.2.jar
    File3: C:UsersAbhinav.gradlecachesmodules-2files-2.1com.fasterxml.jackson.corejackson-core2.7.28b8310381b690e317f5f0574e9b2dd7034778b4cjackson-core-2.7.2.jar

    Reply
  8. I have seen this over 10 times and implemented code, but the data only changes on when any value is added. SO my groups do not populate on runtime and it is a major bug, it only populates when i try to add any event such as create group. This is not the right way, the right way should have been populating list on getView.

    Reply
  9. How to fix this error?

    Execution failed for task 'app:processDebugGoogleServices'.
    > No matching client found for package name 'harrison.com.chatappfollow'

    Reply
  10. the code is giving me two one error and one warning whats the problem.
    version 23 not applicable………….

    android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"
    defaultConfig {
    applicationId "hifriends.hifriends"
    minSdkVersion 14
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
    release {
    minifyEnabled false
    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
    }

    dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12' {
    exclude group: 'com.android.support', module: 'support-annotations'

    compile 'com.google.firebase:firebase-database:9.0.2'
    compile 'com.google.firebase:firebase-database:9.0.2'
    }
    apply plugin: 'com.google.gms.google-services'
    }

    Reply

Leave a Comment