How to search in Firebase database Android

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ส.ค. 2024
  • This video elaborates how to perform search operation in Firebase database and output of search data will be displayed in Recyclerview. SearchIcon is used here as OptionMenu with SearchView.
    How to retrieve firebase data into recyclerview
    -------------------------------------------------------------------------------------
    • [ 2022 Updated ] Fireb...
    **NOTE : Google may show infected file because of CircularImageView dependency
    Download the Source Code from here ::
    *******************************************
    drive.google.c...

ความคิดเห็น • 135

  • @shubhgajjar8782
    @shubhgajjar8782 2 ปีที่แล้ว +1

    Sir really aap jordar ho ....
    Ekdum concept clear kar dete ho ..and pure TH-cam ,stackoverflow,google me jo ma mila wo aapki video me mil gaya ekdum easy way me ...
    Tx alot sir

  • @m-masti
    @m-masti 3 ปีที่แล้ว +2

    Sir aap bahut ache trike se samjha te ho ... thank you sir

  • @anshkumargarhewal8582
    @anshkumargarhewal8582 4 ปีที่แล้ว +7

    Powerful voice after a long time

  • @kamruddinmd7514
    @kamruddinmd7514 4 ปีที่แล้ว +1

    First video in this topic which is really great and to the point

  • @imranahmed8101
    @imranahmed8101 3 ปีที่แล้ว +1

    You are outstanding boss....!!!! bas lage raho. no one can beat you

  • @sunnymazumdar9352
    @sunnymazumdar9352 3 ปีที่แล้ว +2

    You are excellent Sir!
    Thanks a ton

  • @bkshows9141
    @bkshows9141 2 ปีที่แล้ว

    Thank for excellent video , sir ek poore data ko filter karne k liye with firebase per ek video banaye

    • @bkshows9141
      @bkshows9141 2 ปีที่แล้ว

      sir ek poore data ko filter karne k liye with firebase per ek video banaye

  • @huybuiquoc3083
    @huybuiquoc3083 3 ปีที่แล้ว +2

    Thanks you so much sir, you are my helper best!!!!!!!! Thanks god

  • @TheSweetSugaa
    @TheSweetSugaa 3 ปีที่แล้ว +2

    Thanks so much for this video, really helped me out! Even if it was not in english!

  • @someshsahu4638
    @someshsahu4638 2 ปีที่แล้ว +1

    Very nice tutorial sir thankyou so much 🙏🏼🙏🏼🙏🏼

  • @nahidulislam7267
    @nahidulislam7267 3 ปีที่แล้ว +2

    Thank you so much sir.

  • @MuhammadAhmad-qg1ri
    @MuhammadAhmad-qg1ri 3 ปีที่แล้ว +2

    Fantastic

  • @Zakirhossain-sk3nz
    @Zakirhossain-sk3nz 3 ปีที่แล้ว +2

    Thanks a lot .it's working

  • @felipetorres6148
    @felipetorres6148 3 ปีที่แล้ว +1

    No entendí nada de lo que dices pero con solo ver el video es más que suficiente, gracias por la ayuda.

  • @kroy2401
    @kroy2401 4 ปีที่แล้ว +2

    Very clear video, thank you. but i got two questions
    1. I want to search by more than one attribute(children) same time. what should i do?
    2. can i put that query method in a button?

    • @MdJamalmca
      @MdJamalmca  4 ปีที่แล้ว

      just make queries according to your requirement and put to firebase RecyclerOption

    • @kroy2401
      @kroy2401 4 ปีที่แล้ว +1

      @@MdJamalmca I can't find a way to search in recycler view using two or more children. So help me out please.
      I want to search not only with course but also with name too at the same time.

    • @mohitmahajan1947
      @mohitmahajan1947 4 ปีที่แล้ว +2

      @@MdJamalmca sir that data is case sensitive like if we search for "Mobile" went get results for "mobile" or "mObIle" .. how to make it case insensitive. i searched on internet but didn't find any solution please help.

    • @mohitmahajan1947
      @mohitmahajan1947 4 ปีที่แล้ว

      @@kroy2401 th-cam.com/video/VBEzqahgKmw/w-d-xo.html this might help you

    • @TheTahmeed
      @TheTahmeed 3 ปีที่แล้ว

      @@mohitmahajan1947 Did you find the result? I am still searching... If yes then help me :(

  • @md.abubakarsiddik8922
    @md.abubakarsiddik8922 3 ปีที่แล้ว +3

    I have multiple references in my Firebase database, how can i search data from multiple references in single search bar ?

  • @yrsndevelopment514
    @yrsndevelopment514 3 ปีที่แล้ว +1

    Sir, How to search Firebase recycle view from edit text search bar, Please Make a video on it as soon as possible

  • @sureshgohil8828
    @sureshgohil8828 4 ปีที่แล้ว +3

    How to add on click listner on data????

  • @himanshupandey4372
    @himanshupandey4372 3 ปีที่แล้ว +2

    How to add multiple queries. To fetch the data either by name or by course

  • @gurubhai4918
    @gurubhai4918 ปีที่แล้ว +1

    Jamal Sir, if i search Masala Dosa, mein Masala, it works, but if i write Dosa, 2nd or 3rd or subsequent words, it's not searching, what's the solution ?

    • @MATHADDA565
      @MATHADDA565 ปีที่แล้ว

      bhai mujhe bhee same problem h agar mile to bata dena

  • @nemesis9412
    @nemesis9412 3 ปีที่แล้ว +2

    Sir specific unicode character kya hota h? "\uf8ff" and kyu chahiye?

  • @Amankumar-sg3bb
    @Amankumar-sg3bb 3 ปีที่แล้ว +2

    A great thank you ..

  • @RishikSahu
    @RishikSahu 4 ปีที่แล้ว

    Sir Mai aapki videos follow kar raha hu aur ye bohot jada helful hai Please CUSTOM VIDEO PLAYER KI TUTORIAL BANAIYE JISME KISI BHI URL SE VIDEO LIYA JAA SAKE AUR USKO.PLAY KIYA JA SAKTE WITH CUSTOM CONTROLS AND PIP Mode support. Please sir bohot help hogi...

  • @prameshjana5929
    @prameshjana5929 4 ปีที่แล้ว +1

    Very helpful, sir please make Python

  • @vijayjain397
    @vijayjain397 2 ปีที่แล้ว +1

    Sir data take time to set in recyclerview, so how can I put progessbar and hide it after data come in recyclerview

  • @alexsciencesimplified
    @alexsciencesimplified 3 ปีที่แล้ว +1

    How to implement searchview in recyclerview using firebase firestore ?

  • @harshitgupta2868
    @harshitgupta2868 4 ปีที่แล้ว +2

    how to search from the data attached in a list view

  • @himanshupandey4372
    @himanshupandey4372 3 ปีที่แล้ว +1

    If we add custom search view then How to add filter search on it?

  • @firework1684
    @firework1684 2 ปีที่แล้ว +2

    @
    Md Jamal can anyone tell me how to loop this ".equalTo(varible)" in firebase?
    i have used snapshot to capture the variable.
    but when i display this in a recycler view, only 1 value appears.

  • @shubhammetkar6021
    @shubhammetkar6021 3 ปีที่แล้ว +2

    I'm working this in a fragment not activity but I don't know why searchmenu.xml is not inflating(search bar isn't visible and on action taking place)
    some one please help me out.

    • @abhijithanil5953
      @abhijithanil5953 3 ปีที่แล้ว +1

      @Override
      public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
      inflater.inflate(R.menu.[IDMENU], menu) ;
      }
      use this code and put
      setHasOptionsMenu(true);
      in your oncreateview method

    • @adityarevankar6529
      @adityarevankar6529 3 ปีที่แล้ว +1

      @@abhijithanil5953 thank you brother you saved my day

  • @TheTahmeed
    @TheTahmeed 3 ปีที่แล้ว +1

    Lower is not working. Sir any solution?

  • @pvsquad4710
    @pvsquad4710 3 ปีที่แล้ว +2

    Bro tell me how to do search without case sensitive I tried startAt(s.toLowercase()) and endAt (s.toLowercase()) but it is not working, help me bro

    • @TheShadowSuave
      @TheShadowSuave 3 ปีที่แล้ว

      When I did my username search, I would store the users name normally and as all lowercase in my database. Something like username: ShadowSuave and name: shadowsuave so when I query the database I use username to display it, but name for search, then s.toLowercase() should work

    • @pranavkurkure6091
      @pranavkurkure6091 3 ปีที่แล้ว

      or u can also store one more parameter username with all lowercase alphabets if u don't want to hamper your original name parameter

  • @nareshgediya9693
    @nareshgediya9693 3 ปีที่แล้ว

    Helpful......DhanyWad...

  • @mr.deep.
    @mr.deep. 4 ปีที่แล้ว +3

    Onckick event ko kaise handle kare

  • @anujsolanki6260
    @anujsolanki6260 ปีที่แล้ว

    sir, search bar is not visible i have checked code multiple times but don't know why it is not visible

  • @dilshodiskandarov7144
    @dilshodiskandarov7144 3 ปีที่แล้ว

    Thanks my teacher !

  • @agastthakkar8262
    @agastthakkar8262 4 ปีที่แล้ว +1

    thank you sir!!!

  • @bkshows9141
    @bkshows9141 2 ปีที่แล้ว

    Thanks

  • @arauf2497
    @arauf2497 4 ปีที่แล้ว +1

    Sir plz make video on all the layouts of android specially constraints, relative layout ..

  • @vegaboy2003
    @vegaboy2003 3 ปีที่แล้ว +1

    Ottimo tutorial, grazie ma a me non funziona, io uso androidX, è per questo ?, grazie

  • @syedmubeen8082
    @syedmubeen8082 ปีที่แล้ว

    Nice Video

  • @forrukhahmedmaroof934
    @forrukhahmedmaroof934 2 ปีที่แล้ว

    How to set data in firebaserecycleview order by new data in frist... With girdview

  • @attranphu5058
    @attranphu5058 3 ปีที่แล้ว +1

    Greate video it help me alot. Sir, my app doesn't have error, i check my code 3 times, follow your video 3 times, but my search bars still doesn;t appear, the image is fine. I dont know where to start cuz it dont have any error. Do you have any idea?

    • @MdJamalmca
      @MdJamalmca  3 ปีที่แล้ว

      download the source code and try once

    • @vabpro
      @vabpro 3 ปีที่แล้ว

      have you solved the problem.. becoz m having same..

  • @vegaboy2003
    @vegaboy2003 3 ปีที่แล้ว +1

    ok ok it works, I would like to insert a progressBar, where should I insert it in the java code? thank you

  • @sohaibaktargazi
    @sohaibaktargazi 3 ปีที่แล้ว

    if I want to search two node together how to be possible ??? like once if I search by name and after search by email how to be???? please help!!

  • @wiame7217
    @wiame7217 2 ปีที่แล้ว

    Thank you💚

  • @alexandearx
    @alexandearx 2 ปีที่แล้ว

    Please answer, is it sequential search??? Tell me if it's something else

  • @vagamers733
    @vagamers733 3 ปีที่แล้ว +2

    sir ur code works on atcivity make a video same as above on fragment @Md Jamal

    • @abhijithanil5953
      @abhijithanil5953 3 ปีที่แล้ว +1

      @Override
      public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
      inflater.inflate(R.menu.[IDMENU], menu) ;
      }
      use this code and put
      setHasOptionsMenu(true);
      in your oncreateview method

    • @isaacinvang
      @isaacinvang 2 ปีที่แล้ว

      @@abhijithanil5953 When I click on X icon from the the search view it does not populate the whole data again in the recyclerview like it was in the initial state before searching. Like 8:19

  • @KOBERRORYT
    @KOBERRORYT 2 ปีที่แล้ว

    Bro i have a doubt here you will add new documents/new users in recycling view. My question is same user we will add additional details in same file/user

  • @_ytuser11
    @_ytuser11 2 ปีที่แล้ว

    Sir mere app mei search cancel karne par by default users ke naam nhi aa rhe bass starting ke 3 ke aa rhe hai, please tell

  • @Blober
    @Blober 3 ปีที่แล้ว

    why startListening is not working in my project

  • @Lokesh.Sharma2000
    @Lokesh.Sharma2000 3 ปีที่แล้ว

    Please help
    Error showing w/classmaper : no setter for email not found please help

  • @_ytuser11
    @_ytuser11 2 ปีที่แล้ว

    thank you sir :)

  • @learnwitharslan1049
    @learnwitharslan1049 3 ปีที่แล้ว

    Search view is not working properly in my code.

  • @vivekcms1
    @vivekcms1 2 ปีที่แล้ว

    How do we make Firebase query search case insensitive?

  • @AatmikMishra
    @AatmikMishra 2 ปีที่แล้ว

    this search is case sensitive

  • @razowankobir7378
    @razowankobir7378 ปีที่แล้ว

    sir this id not working in a fregment

  • @Glam1877
    @Glam1877 2 ปีที่แล้ว +1

    Hello! Thank you for the great video. We want to search by 3 different childs in firebase.
    We wrote:
    String query = searchtext.toLowerCase();
    Query firebaseQuery = resturantRef.orderByChild("name").startAt(query).endAt(query+ "\uf8ff");
    and we want to add another child like type of resturant.
    We would love you help.
    Thank you,
    Hadas

  • @ooyen
    @ooyen 3 ปีที่แล้ว +1

    will this work in fragment?

    • @abhijithanil5953
      @abhijithanil5953 3 ปีที่แล้ว +1

      @Override
      public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
      inflater.inflate(R.menu.[IDMENU], menu) ;
      }
      use this code and put
      setHasOptionsMenu(true);
      in your oncreateview method

    • @ooyen
      @ooyen 3 ปีที่แล้ว

      @@abhijithanil5953 oh and everything else is still the same right? thank you so much i will try this code

    • @hananihannan
      @hananihannan 3 ปีที่แล้ว

      @@ooyen hi, does the code work for you?

  • @khushalambaliya4624
    @khushalambaliya4624 8 หลายเดือนก่อน

    Firebaserecycleroption me error aa raha hai bro

  • @tanveerhasan875
    @tanveerhasan875 3 ปีที่แล้ว

    it's working

  • @gauravmasand
    @gauravmasand 2 ปีที่แล้ว

    bro how can we make it more optimized

  • @appdevolper4185
    @appdevolper4185 4 ปีที่แล้ว +1

    Sir can you be my mentor?

  • @TheTahmeed
    @TheTahmeed 3 ปีที่แล้ว

    Please sir give me a solution How I can search with both Capital and Small letter?

    • @MdJamalmca
      @MdJamalmca  3 ปีที่แล้ว

      it is very simple. just convert the searching keyword in small and compare. in any case let the user give the search keyword you just convert it to any specific case and compare. that set

    • @pvsquad4710
      @pvsquad4710 3 ปีที่แล้ว

      @@MdJamalmca Bro tell me how to do search without case sensitive I tried startAt(s.toLowercase()) and endAt (s.toLowercase()) but it is not working, help me bro

  • @digismartstudy2894
    @digismartstudy2894 3 ปีที่แล้ว

    sir how do i get unicode charecter?

  • @mohitmahajan1947
    @mohitmahajan1947 4 ปีที่แล้ว

    sir that data is case sensitive like if we search for "Mobile" went get results for "mobile" or "mObIle" .. how to make it case insensitive. i searched on internet but didn't find any solution please help.

    • @MdJamalmca
      @MdJamalmca  4 ปีที่แล้ว +1

      put the query keyword in a string and then compare it by converting to both lower and upper case by using OR operator in between. if any one will be try then proceed to further.

    • @shubhammetkar6021
      @shubhammetkar6021 3 ปีที่แล้ว

      @@MdJamalmca Will you please elaborate?

    • @pvsquad4710
      @pvsquad4710 3 ปีที่แล้ว +1

      @@shubhammetkar6021 Bro did you find it ? tell me how to do that?

    • @pvsquad4710
      @pvsquad4710 3 ปีที่แล้ว

      @@MdJamalmca Nice video bro tell me how to do that?

    • @shubhammetkar6021
      @shubhammetkar6021 3 ปีที่แล้ว

      @@pvsquad4710 I'm actually working on that thing for making an e-commerce app for a company, once I find any solution over it I'll reply on this comment to let you know... till then try to research abt elastic search - it's a google product.

  • @matteoc7084
    @matteoc7084 3 ปีที่แล้ว +1

    if you post the title in English then make the video in English!!!

  • @hameedhabeeblahi576
    @hameedhabeeblahi576 2 ปีที่แล้ว

    @Md jamal, please have you work on flutter project base on geofence

  • @prakashbasnet1156
    @prakashbasnet1156 4 ปีที่แล้ว +1

    Sir can we be friends in social media?
    I need to clear my lots of doubts please sir

    • @MdJamalmca
      @MdJamalmca  4 ปีที่แล้ว

      facebook.com/mdjamalmca/

    • @pvsquad4710
      @pvsquad4710 3 ปีที่แล้ว

      @@MdJamalmca Bro tell me how to do search without case sensitive I tried startAt(s.toLowercase()) and endAt (s.toLowercase()) but it is not working, help me bro

  • @fadjristudio6804
    @fadjristudio6804 3 ปีที่แล้ว +1

    is this work for firestore database ?

  • @noemilkhenedybatayen492
    @noemilkhenedybatayen492 3 ปีที่แล้ว

    i cant acces your google drive

  • @rajuadapa05
    @rajuadapa05 4 ปีที่แล้ว

    How to add intents.. Different intents.. Not adapter position..

    • @MdJamalmca
      @MdJamalmca  4 ปีที่แล้ว

      th-cam.com/video/sZ8D1-hNeWo/w-d-xo.html
      Do watch it first

    • @pvsquad4710
      @pvsquad4710 3 ปีที่แล้ว

      @@MdJamalmca Bro tell me how to do search without case sensitive I tried startAt(s.toLowercase()) and endAt (s.toLowercase()) but it is not working, help me bro

  • @nachetons
    @nachetons 4 ปีที่แล้ว

    i prefer use OnTextChanged and use TextWatcher I think is more easy

    • @user-pc5xz9oj6c
      @user-pc5xz9oj6c ปีที่แล้ว

      and it cost alot .. it spam query to firebase.. query not free lol .. u pay for it ...when ur app reach more than 10k users u will pay alot

  • @Umeed_
    @Umeed_ ปีที่แล้ว

    Any way to contact you?

  • @ankitunnikrishnan6244
    @ankitunnikrishnan6244 4 ปีที่แล้ว

    Sir full same copy paste kea nai search ho raha hai kuch nai show kar raha and cross m click krta hu tho vo data waps aata bhi nahi

    • @MdJamalmca
      @MdJamalmca  4 ปีที่แล้ว +1

      then download the source code and try once. kanhi na kanhi kuch to mistake jaroor hoga. check the code once again sharply

    • @ankitunnikrishnan6244
      @ankitunnikrishnan6244 4 ปีที่แล้ว

      Okay sir

    • @ankitunnikrishnan6244
      @ankitunnikrishnan6244 4 ปีที่แล้ว

      Hogaya sir maina orderBychild ko sirf child likha tha my bad...

  • @KUMAR-mm4sw
    @KUMAR-mm4sw 4 ปีที่แล้ว

    सर MYSQL डेटाबेस में किसी PDF या image file को किसी रोल नंबर page से कनेक्ट कैसे करें जैसे रोल नंबर डालने से फाइल या तो डाउनलोड हो जाए या show हो जाए । सर इसके लिए कौन सी क्वाइरी या कनेक्शन यूज़ होता है प्लीज थोड़ा बता दीजिए । मेरे पास एक रोल नंबर पेज है जिसमें मैं रोल नंबर डालकर डेटाबेस से PDF या IMAGE फाइल को show या तो डाउनलोड करना चाहता हूं सर प्लीज बता दीजिए

    • @MdJamalmca
      @MdJamalmca  4 ปีที่แล้ว

      you can make table lik this tbl_data(id,roll_no, file_name) where filename will be name with path where the actual file is stored. now get the file url using query and get it using json to application and in application use glide dependency to display it in imageview. the query to fetch image is simple SELECT * FROM tbl_data where id=''YourRoll'

  • @natanelelkutski9966
    @natanelelkutski9966 3 ปีที่แล้ว

    why are all hindi so weird!!?? why you post a video in english when you only speak hindi ?:????? if you write english speak english or post in hindi language.... dont be a weird S

    • @ankitgoyal8556
      @ankitgoyal8556 3 ปีที่แล้ว

      It's really easy to blame someone because you don't know how much effort it takes to make it.

    • @natanelelkutski9966
      @natanelelkutski9966 3 ปีที่แล้ว

      @@ankitgoyal8556 i preciate the effort and i can imagine how much effort it took but its building hope for people who doesn't speak hindi and then they hear hindi and hope lost .... just saying if you post a tutorial in english title speak english or post it in hindi please dont lead people just to get more views!!!

    • @ankitgoyal8556
      @ankitgoyal8556 3 ปีที่แล้ว

      @@natanelelkutski9966 I feel its not about getting views, if it is then hindi songs should have title in hindi rather than in english. I feel you have been frustated after watching this over and over again.

    • @natanelelkutski9966
      @natanelelkutski9966 3 ปีที่แล้ว

      @@ankitgoyal8556 yeah its pretty annoying after founding a tutorial you're actually looking for in english than you hear first few words "hello guys" and then it turns into hindi tutorial...
      i know india's devs are very very smart but please if you share a video at least think about the people who dont speak the language...

    • @ankitgoyal8556
      @ankitgoyal8556 3 ปีที่แล้ว

      @@natanelelkutski9966 Yeah, funny but true. This guys are awesome, I had started my freelancing carrier just because of these guys.

  • @kbvlog620
    @kbvlog620 2 ปีที่แล้ว

    Thank you so much Sir.