Creating Chatting Application in Android Studio Using Kotlin | GeeksforGeeks

In this video, we're going to discuss how to create a Chat Application in Android Studio using Kotlin. The application will consist of a Sign Up / Login Page and will allow you to chat with other users without any hassle. So, let's get started now.
Check Out the Related Articles:
Complete Kotlin Tutorial [www.geeksforgeeks.org/kotlin-...]
Complete Android Tutorial [www.geeksforgeeks.org/android...]
Apply For Video Internship Program - script.geeksforgeeks.org/on-b...
Our courses: practice.geeksforgeeks.org/co...
This video is contributed by Abhay Maurya.
Please Like, Comment, and Share the Video with your friends.
#android ​#project #kotlin #androidstudio #appdevelopment
Install our Android App:
play.google.com/store/apps/de...
If you wish, translate into the local language and help us reach millions of other geeks:
kzread.info_cs_p...
Follow us on our Social Media Handles -
Twitter- / geeksforgeeks
LinkedIn- / geeksforgeeks
Facebook- / geeksforgeeks.org
Instagram- geeks_for_g...
Reddit- / geeksforgeeks
Telegram- t.me/s/geeksforgeeks_official
Also, Subscribe if you haven't already! :)

Пікірлер: 334

  • @brunonunes6532
    @brunonunes6532 Жыл бұрын

    Thank you for such a great tutorial, i've been searching for a long time for this kind of content and i found yours. Rich and straight forward content.

  • @ghaidaaal-ezzi8677
    @ghaidaaal-ezzi8677 Жыл бұрын

    I love your content it is very straight forward the best for programmers personality they want to see things working after long hours of coding!

  • @gaelramos6584
    @gaelramos6584 Жыл бұрын

    25:00 for newer versions it will appear the "apply" as an "id" just paste them in the plugin section at the top and if it repeats with an already previous id just delet the new one.

  • @baselkayali3374
    @baselkayali3374 Жыл бұрын

    Absolutely is amazing your explaining and everything is simple Many thanks for Abhay Maurya.

  • @walidkhalil3451
    @walidkhalil34512 жыл бұрын

    So instructive, keep it up!

  • @sknoman3949
    @sknoman3949 Жыл бұрын

    Thanks buddy, I watched the whole video and applied. Which works fine, do continue great tutorials.

  • @ashwinnair1035

    @ashwinnair1035

    6 ай бұрын

    can you please share your code

  • @ahmetylmaz9909
    @ahmetylmaz99092 жыл бұрын

    Thats so nice video. I did this application with you.

  • @kaushikkaransingh3240
    @kaushikkaransingh32402 жыл бұрын

    Really wanted this tutorial 🔥

  • @GOSPELTHRONE
    @GOSPELTHRONE Жыл бұрын

    Thanks so much, the app work exact as yours.. looking forward to more video on improving it's functionality and most especially attaching files

  • @ashwinnair1035

    @ashwinnair1035

    6 ай бұрын

    Can you please share your code

  • @rondolfopresilla6876
    @rondolfopresilla6876 Жыл бұрын

    Hi sir, thanks for the video. Just to let others know that one year after you published it I was able to get it to work. For some bizarre reason, the chat layout design did not work as expected and all components were all over the place, but after a quick search I was able to get it to work as well. Thanks again.

  • @karthikprabhu23223

    @karthikprabhu23223

    Жыл бұрын

    Hello, How did u overcome this problem? Could we connect on LinkedIn Or GitHub regarding this?

  • @skootz24

    @skootz24

    Жыл бұрын

    @@karthikprabhu23223 For me the fix was to start the project as an "Empty Views Activity" instead of just an "Empty Activity". and whenever a new empty activity is made I use Empty Views Activity instead. That seems to get stuff working, though please be aware that I am new and inexperienced, so not sure what the difference is and if I may be messing something up later on.

  • @karthikprabhu23223

    @karthikprabhu23223

    Жыл бұрын

    @@skootz24 Thank you for replying. 😃

  • @abhishekydv55

    @abhishekydv55

    4 ай бұрын

    bro can you share the source code with us plz... it will be of great help

  • @asaelrddz
    @asaelrddz2 жыл бұрын

    THANK YOU SO MUCH FOR SHARE THIS CONTENT, ITS JUST AMAZING! ❤️

  • @souravsarkar6107
    @souravsarkar61072 жыл бұрын

    Great Understanding Video you made thank you

  • @theworldisbeautiful6583
    @theworldisbeautiful65832 жыл бұрын

    Thanks a lot for this detailed explanation. That is just the best tutorial in creating the chat in Android- step by step, everything is clear. I had some difficulties with the RecyclerView, because my Android Studio didn't except some part of the code in xml file, so I had just deleted a little bit and it started to work. Thanks a lot for this great video !!!!!!!!!!!!!!!!!!!!!!!!!

  • @sanjayan_n

    @sanjayan_n

    2 жыл бұрын

    Could you please reply with the changes you made...

  • @codingpathshala559
    @codingpathshala559 Жыл бұрын

    24:26 , in the new android studio, there is a difference in the build.gradle , there are no such dependencies , Then where to paste that classpath ? Pls reply me ASAP .

  • @elijahdecalmer613
    @elijahdecalmer613 Жыл бұрын

    Thanks!

  • @codewithsas6690
    @codewithsas66902 жыл бұрын

    Thancx a lot sir, lot of things learned

  • @androidsurfers7572
    @androidsurfers75722 жыл бұрын

    Simply awesome

  • @pradeepkumarreddykondreddy7048
    @pradeepkumarreddykondreddy7048 Жыл бұрын

    In this app, do you load the users existing contacts from the android system ? And also do you listen for contacts changes in android system ?

  • @swapnalijoshi8808
    @swapnalijoshi8808Ай бұрын

    Thank you so much sir 🙏

  • @ScienceForUs
    @ScienceForUs2 жыл бұрын

    I will be going to make this app. Thanks yar.

  • @ruapakbhardwaj19345
    @ruapakbhardwaj19345 Жыл бұрын

    i have an erron in build.gradle error is all buildscript {} blocks must appear before any plugins {} blocks in the script please help.

  • @nastenkaoo
    @nastenkaoo Жыл бұрын

    you are great, it works properly

  • @steep6444
    @steep64442 жыл бұрын

    24:43 i haven't found a build gradle and dependencies can u help me ?

  • @heko9614
    @heko96142 жыл бұрын

    Thank You, nice tutorial

  • @duncanmoiyo6069
    @duncanmoiyo60692 жыл бұрын

    the best tutorial ever

  • @user-wb5dw2so8w
    @user-wb5dw2so8w2 жыл бұрын

    Thank you very much, my sir

  • @hammadhassan978
    @hammadhassan9782 жыл бұрын

    i want your gradle(app) file. will u share the picture of the dependencies?

  • @tanvitripathi5743
    @tanvitripathi57432 жыл бұрын

    Thanks for this effort

  • @st.libertos
    @st.libertos2 жыл бұрын

    Thank you very much!

  • @marianikolaou9580
    @marianikolaou95802 жыл бұрын

    Amazing!

  • @geeker_yela
    @geeker_yela2 жыл бұрын

    Help!! When connected to Firebase, the button setOnClickListener failed to jump to the sign up page. What should I do?

  • @darrinreed8027
    @darrinreed80272 жыл бұрын

    Do you go over draw over other apps on this? I'm looking to be able to have user click a button that overlays on other apps to send a message that way.

  • @ishmamrahman877

    @ishmamrahman877

    2 жыл бұрын

    you need to use fragments

  • @gulkhitababbasi5391
    @gulkhitababbasi53912 жыл бұрын

    Thank u very very much sir

  • @Tough_Sol_Art
    @Tough_Sol_Art2 жыл бұрын

    Thanks to you sir for this stuff

  • @user-zn7qx2ib5p
    @user-zn7qx2ib5p Жыл бұрын

    When I'm adding to the Realtime Database from Android Studio, there it shows the JAVA version instead of KOTLIN. What should I do? Do I continue to add JAVA only?

  • @dumbguy1073
    @dumbguy1073 Жыл бұрын

    Amazing Tutorial!!

  • @yusufcetin9732
    @yusufcetin97322 жыл бұрын

    hello Can you put theis app google play ? is that any securty ıssues about these app ? I am not going t copy these but I am trying to make these kind of application .I just want to learn that If i do this kind of app google play accept this ? thanks !

  • @qaphelanimthembu8514
    @qaphelanimthembu85142 жыл бұрын

    @ 1:01:45 How do you reference the adapter? It just doesn't work. It appears red and it says unresolved reference. Do I need any dependencies for this? Please help.

  • @ankitsoni9479

    @ankitsoni9479

    2 жыл бұрын

    I had the same problem but then I rechecked And found that I made this file in wrong path ..please recheck tha path

  • @shashanksp9168
    @shashanksp9168 Жыл бұрын

    1:06:04 Can I setup Database in LockedMode since the test mode is only for 30days

  • @kevinsolanki6232
    @kevinsolanki6232 Жыл бұрын

    Completed. Thank you so much sir😌🙏🏻🙏🏻💙

  • @BadBoy-sc3xv

    @BadBoy-sc3xv

    Жыл бұрын

    did you get same gradle as same as in video

  • @kevinsolanki6232

    @kevinsolanki6232

    Жыл бұрын

    @@BadBoy-sc3xv no. It was totally different. I guess it's updated that's why. So I added this in Gradle (project) file : buildscript{ repositories { jcenter() } dependencies{ classpath 'com.google.gms:google-services:4.3.13' } }

  • @ashwinnair1035

    @ashwinnair1035

    6 ай бұрын

    can you please share your code

  • @polarcat9234
    @polarcat92342 жыл бұрын

    Thank you so much

  • @hamzamunir4227
    @hamzamunir4227 Жыл бұрын

    Great sir👍

  • @codewith_ayushluthra5248
    @codewith_ayushluthra5248 Жыл бұрын

    Completed Thanks ❤❤

  • @maisakurajima9194

    @maisakurajima9194

    4 ай бұрын

    Can u provide source code?

  • @shagunchaturvedi2020
    @shagunchaturvedi20202 жыл бұрын

    Can we integrate notification in this app by firebase cloud messaging.... Is it possible?

  • @SaifEddineLAYOUNI
    @SaifEddineLAYOUNI Жыл бұрын

    can you provide for us the manifest file because i dont know how relate each interfaces between them

  • @Ameya890
    @Ameya8902 жыл бұрын

    Thank you! Will try this ASAP

  • @Trigoter

    @Trigoter

    2 жыл бұрын

    Firebaseauth at 29:50 is not working for me, help me.

  • @shagunchaturvedi2020

    @shagunchaturvedi2020

    2 жыл бұрын

    @@Trigoter shut android studio and open again... May be it will work.

  • @saadkiani8784

    @saadkiani8784

    Жыл бұрын

    Contacts are not showing Can you helpme

  • @msganesh5373
    @msganesh53732 жыл бұрын

    haii i'm facing this error java.lang.ClassCastException: android.widget.RelativeLayout cannot be cast to android.widget.Button , please help me

  • @SonuKumar-px9dy
    @SonuKumar-px9dy2 жыл бұрын

    sir i got only one type of messages mean reciverroom or senderroom how to handle such problem pls

  • @surajverma-ly3px
    @surajverma-ly3px5 ай бұрын

    Thank you sir ji ,

  • @Hassan-re8kh
    @Hassan-re8kh2 жыл бұрын

    can comeone tell me why only one layout is inflated all messages are in receive layout? even when Im the sender

  • @ashwanisingh7990
    @ashwanisingh7990 Жыл бұрын

    When you reopen application, it automatically log out, so we have to sign in everytime. That is annoying, can someone suggest how to fix it, or what snippet do i have to use to stay signed in

  • @luisdomiciano
    @luisdomiciano7 ай бұрын

    Amazing

  • @who_thekaushik
    @who_thekaushik Жыл бұрын

    i am having a issue in sign up and login . on signup page its showing authentication failed but on the firebase user is registering . and also login is not happing . authenticating failed is the error. can you give me a hint

  • @user-hm6uc8bz8q
    @user-hm6uc8bz8q4 ай бұрын

    cool video)

  • @s.d.a906
    @s.d.a9062 жыл бұрын

    Great!!!

  • @alisaquibraza6870
    @alisaquibraza6870 Жыл бұрын

    why use relative layout when you have constraint Layout?

  • @sodagarali4442
    @sodagarali4442 Жыл бұрын

    Thank u very much

  • @vikuvlog108
    @vikuvlog1082 жыл бұрын

    Awesome work..... Please upload React js project also

  • @kee3379
    @kee3379 Жыл бұрын

    Can we download the created app 9n android studio to our phone 📱

  • @TeamPlaying11
    @TeamPlaying11 Жыл бұрын

    Thanks for sharing

  • @nomadrachit
    @nomadrachit10 ай бұрын

    Thank you.

  • @samsh4021
    @samsh40212 жыл бұрын

    You are the best

  • @vynibinisarmiento
    @vynibinisarmiento Жыл бұрын

    Thank You for this Sir!

  • @sandeepaurora9598

    @sandeepaurora9598

    Жыл бұрын

    hey, can your share source code of this application

  • @saadkiani8784
    @saadkiani8784 Жыл бұрын

    Contacts are mot showing 1:24:50

  • @praveenaade1214
    @praveenaade12142 жыл бұрын

    Please do one project Retrofit and room database using MVVM

  • @wissamhassani9625
    @wissamhassani9625 Жыл бұрын

    Just finished the app!!!! Great stuff!!!!!

  • @nastenkaoo

    @nastenkaoo

    Жыл бұрын

    does it work properly?

  • @karthikprabhu23223

    @karthikprabhu23223

    Жыл бұрын

    Does the project run successfully? Could you share the GitHub repo?

  • @ashwinnair1035

    @ashwinnair1035

    6 ай бұрын

    can you please share your code

  • @samuelremolina2322
    @samuelremolina23222 жыл бұрын

    Awesome!

  • @Trigoter

    @Trigoter

    2 жыл бұрын

    Firebaseauth at 29:50 is not working for me, help me.

  • @nubcops220
    @nubcops2202 жыл бұрын

    Does it work for people with different internets?

  • @surajverma-ly3px
    @surajverma-ly3px5 ай бұрын

    I have successfully completed this project

  • @maisakurajima9194

    @maisakurajima9194

    4 ай бұрын

    Hi, did u used Android Studio Iguana?

  • @jauharansari3113

    @jauharansari3113

    4 ай бұрын

    bro you got the name of all users present in Realtime database in your Recycler View? i don't get the user in my recyclerView . can you explain me please?

  • @surajverma-ly3px

    @surajverma-ly3px

    4 ай бұрын

    @@maisakurajima9194 kotlin

  • @user-um6wt8td9z

    @user-um6wt8td9z

    4 ай бұрын

    Hi can i massage you to send a source code

  • @surajverma-ly3px

    @surajverma-ly3px

    4 ай бұрын

    @@user-um6wt8td9z yes

  • @matwit91
    @matwit912 жыл бұрын

    24:35 I have some issues with gradle top level build file, when I opened mine file, it looks different than yours. I don't have buildscript, dependancies and all project, what should I do?

  • @matwit91

    @matwit91

    2 жыл бұрын

    I did it xd

  • @srivallisangareddy3599

    @srivallisangareddy3599

    2 жыл бұрын

    Copy buildscript and dependencies from firebase and don't copy all projects Paste buildscript and dependencies above plugins

  • @nandangureja8975

    @nandangureja8975

    2 жыл бұрын

    @@matwit91 Can you let me know , m facing the same issue

  • @rolandbogdan8502

    @rolandbogdan8502

    2 жыл бұрын

    pls help me how did you solve that

  • @mohamed_gamal6308

    @mohamed_gamal6308

    2 жыл бұрын

    @@rolandbogdan8502 Copy buildscript and dependencies from firebase and don't copy all projects Paste buildscript and dependencies above plugins from Srivalli answer

  • @fridaee
    @fridaee Жыл бұрын

    The firebase gradle thing was hard for me, but I fixed it with this: // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { google() mavenCentral() } dependencies { classpath 'com.google.gms:google-services:4.3.14' } } plugins { id 'com.android.application' version '7.3.1' apply false id 'com.android.library' version '7.3.1' apply false id 'org.jetbrains.kotlin.android' version '1.7.20' apply false }

  • @alishershalken1664

    @alishershalken1664

    Жыл бұрын

    Thank you very much!

  • @fridaee

    @fridaee

    Жыл бұрын

    @@alishershalken1664 np!

  • @Blaze_-is9yb

    @Blaze_-is9yb

    Жыл бұрын

    Thanks alot

  • @saikoushik7626

    @saikoushik7626

    Жыл бұрын

    tnx

  • @bharanishekar4393

    @bharanishekar4393

    Жыл бұрын

    thank you so mch man helped a lot

  • @rohithjuluru9481
    @rohithjuluru94812 жыл бұрын

    1:10:42 When I try to sign up ,it crashes. In authentication, I can see my users but in database, I cannot. Is there anything I can do to make it right.

  • @charlesschen1292

    @charlesschen1292

    2 жыл бұрын

    Hi i got the same problem did you get the solution?

  • @merdanbazarow221
    @merdanbazarow221 Жыл бұрын

    hello sir I like your post. I would like to discuss some topic with you. I want to write Xmpp client using Xmpp server. Do I need to use Service, Shaerd Prefence in my work? I want to expand to 1000 users. Similar to Conversation Xmpp client, but I want to configure it myself. your opinion on it

  • @johnportelance3851
    @johnportelance3851 Жыл бұрын

    can you make a group chat, that is chatters can join specific groups for shared chat?

  • @sarmadmahar
    @sarmadmahar2 жыл бұрын

    How can we send push message like whats app user get alert and he can see ballon popup for new message

  • @marianikolaou9580
    @marianikolaou95802 жыл бұрын

    Thanks

  • @asm9450
    @asm94502 жыл бұрын

    First of all thank you for this amazing chatapplication got to learn new concepts. I followed the steps as shown but I don't know why as soon as I login the window takes some time and the app crashes. Although I have installed all the dependencies. Can you please help me out

  • @manasijadhav39

    @manasijadhav39

    2 жыл бұрын

    Hey, try checking in the 'Login.kt' under OnClickListener in val intent you might have typed 'btnsignup' instead of 'Signup'. I made the same blunder.

  • @ranahishamfoad6164
    @ranahishamfoad61642 жыл бұрын

    It would be better to share the source code link.

  • @VaibhavJariwala-xb2ri

    @VaibhavJariwala-xb2ri

    10 ай бұрын

    If he does that,then what u will do 😂😂

  • @maisakurajima9194

    @maisakurajima9194

    4 ай бұрын

    Hi can u share it?

  • @lastminutegyan9975
    @lastminutegyan99752 жыл бұрын

    I am following the same code as you are doing but my values are not getting stored in realtime firebase. My Authentication is working fine but values are not getting stored. Can you please help on this. I am stuck because of this.

  • @priyaraja1624

    @priyaraja1624

    Жыл бұрын

    Yes, you are resolve this problem, i'm also stuck this step.please can you help me ?

  • @nishantpedgulkar7749
    @nishantpedgulkar774910 ай бұрын

    Bro when we are using @signup and @login it is showing ambiguous error and app is not starting in phone from start it is crashing can you give the solution pls .

  • @yekatrinageranomova317
    @yekatrinageranomova317 Жыл бұрын

    I love you content so much!

  • @shadabarzoo2258
    @shadabarzoo2258 Жыл бұрын

    in signin page else part is running if is not running

  • @srikumarma
    @srikumarma2 жыл бұрын

    It's working for me 💥

  • @abhishekydv55

    @abhishekydv55

    4 ай бұрын

    bro please share the source code with me

  • @intensive.code13
    @intensive.code132 жыл бұрын

    Can you make this same app in Java ?

  • @astrick1696
    @astrick16962 жыл бұрын

    1:01:30 I'm getting error after typing UserAdapter ---> Saying "Unresolved Reference" someone Please Help..😢🙏

  • @doctorpizza8518
    @doctorpizza85182 жыл бұрын

    1:34:48 don't mind me, just putting a bookmark for myself

  • @pooryaalishahkamandi1087
    @pooryaalishahkamandi10872 жыл бұрын

    nice

  • @harshakar274
    @harshakar2743 ай бұрын

    can you please provide git hub repo , or any drive link of this project?

  • @alinoel7411
    @alinoel74112 жыл бұрын

    Thank you very helpful

  • @ashish._.chaudhary1
    @ashish._.chaudhary12 жыл бұрын

    For this what things and language i have to learn

  • @priyaraja1624
    @priyaraja1624 Жыл бұрын

    Please answer guys, after firebase setting completed and while clicking signup button its exit with emulator but it should redirecting to the sign up page

  • @priyaraja1624

    @priyaraja1624

    Жыл бұрын

    Anyone can you help me

  • @pranav9815
    @pranav9815 Жыл бұрын

    Please help me out I am facing too much issues creating this app, I have to add it in my resume

  • @eduard289
    @eduard2892 жыл бұрын

    Hi everyone. I have to ask, can we make an app with React js and kotlin ? Somehow to alternate them ? the logic part in kotlin and fe with recat ?

  • @peterstefanov3594

    @peterstefanov3594

    Жыл бұрын

    Probably. You can interlace any code with any other code if you're talented enough. How you end up doing that? I'm not smart enough to know. But if you're simply asking if it's possible, yes.

  • @wilsonptamegajr2312
    @wilsonptamegajr23122 жыл бұрын

    Great Tutorial!!! But I got a sticky question: "How do I implement a security rule so no user with access to the firebase realtime through console could change any value on the database?" For example, how to avoid that someone could change a message text through firebase console?

  • @The__Leo69

    @The__Leo69

    2 жыл бұрын

    By storing encrypted messages.

  • @wertuxhd6201
    @wertuxhd62012 жыл бұрын

    I have finished the video and coding.. Fixed all the errors until the end. But first app was crushing so I simply added push() to the code. Now no crash but the messages wont pop up. If someone knows the solution please.

  • @saadkiani8784

    @saadkiani8784

    Жыл бұрын

    Contacts are not showing can you help me

  • @saadkiani8784

    @saadkiani8784

    Жыл бұрын

    Can't retrieve contact from data base

  • @favournelson9201
    @favournelson92012 жыл бұрын

    Please why do i get an error message (Android resource linking failed) Whenever i move the intent -filter In between the activity (login) and the MainActivity

  • @hammadhassan978

    @hammadhassan978

    2 жыл бұрын

    because when u change the theme in style.xml file to "appcompat.NoActionBar" u did not add the further dependency of appcompat.. only one dependency of appcompat should not compile this file . to remove this error dont change the theme in style.xml or add the correct dependencies

  • @Arsalan0098
    @Arsalan0098 Жыл бұрын

    How can I create something like this without using Firebase? on my dedicated server?

  • @shashanksingh4708
    @shashanksingh47082 жыл бұрын

    Can you make such a series in flutter please

  • @LovePahadUttrakhand
    @LovePahadUttrakhand Жыл бұрын

    Sir can I know what is the bandwidth?

  • @SanduniWarnakulasooriya
    @SanduniWarnakulasooriya Жыл бұрын

    What architecture are you using here ?