SQLite + Android - Display Data in RecyclerView (Book Library App) | Part 3

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

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

  • @juanenriquez2798
    @juanenriquez2798 3 года назад +7

    for those who are encountering errors, watch carefully and maybe play the video with 0.5 speed, got mine working!

  • @gasparcalix2095
    @gasparcalix2095 4 года назад +1

    If you want to enjoy the video, jut put at 0.75. This guy know his stuff!!!

  • @slblackmamba
    @slblackmamba 2 года назад +5

    Today is the deadline of my assignment. But i couldn't create my application until today. This is the only video that helped my problem. thanks brother. Keep up the good work

  • @sinoiumarzoda7857
    @sinoiumarzoda7857 4 года назад +2

    @all pls pay attention to small issues, if your app is not running. Double check. My app runs perfectly and thanks a lot sir for an excellent explanation!

  • @jasonshin7197
    @jasonshin7197 4 года назад +9

    It is very clear and precise!
    It helped me a lot to understand SQLite with Android!
    Thanks for your valuable videos!!! :)

  • @paoflores9794
    @paoflores9794 2 года назад +2

    Wow, this is the last video of the series and it has been the most helpful tutorial I've found. It was very clear, good explanation. So, I am able to learn too, and I was able to deliver my assignment on time. 100/10. Thank youu :)

  • @1CE20CS00AdarshMishra
    @1CE20CS00AdarshMishra Год назад +2

    great tutorial
    every things working fine, but after adding new book it does not dispaly immediately, i have to restart app once again to display it
    helap me

    • @zerodigits2413
      @zerodigits2413 9 месяцев назад +1

      Hello, did you find a solution for this? I'm also facing the same problem

    • @RiadVal
      @RiadVal 7 месяцев назад

      Same problem.

    • @RahulSingh-jc8gv
      @RahulSingh-jc8gv 3 месяца назад

      Any solution bro please tell me.

    • @RahulSingh-jc8gv
      @RahulSingh-jc8gv 3 месяца назад

      Any solution please tell me

  • @fatihkoc1520
    @fatihkoc1520 2 года назад +1

    Hello im just started to coding and i need to ask u why u didnt use view binding for bind and the book class for the saving informations and ArrayList for holding objects

  • @CursosDeExcelyMacros
    @CursosDeExcelyMacros 2 года назад

    Perfect! It is exactly what I was looking for. Thank you very much. Muchas gracias!!!

  • @giridharb1323
    @giridharb1323 3 года назад +3

    It doesn't display anything but the data are stored in database, what would it be?

  • @brigadir5830
    @brigadir5830 2 года назад

    Привет из России спасибо вам за отличные уроки ❤❤❤. Всего вам хорошего❤❤❤

  • @Lolserpres
    @Lolserpres 2 года назад +2

    i didnt miss anything but sadly the data in recyclerview doesnt show up :(

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

      You probably missed 9:45

  • @MuhamadArif-hm4cw
    @MuhamadArif-hm4cw Год назад +1

    why my recyclerview only show one data instead of all the data in the table?

  • @best_books_bot
    @best_books_bot 4 года назад +1

    Awesome tutorial! Thank You!

  • @anshuldeodia8846
    @anshuldeodia8846 4 года назад +3

    Why it stops every time I open it? I have followed all the steps correctly

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

      In my case I forgot to reference the recyclerView in MainActivity.java inside onCreate method

  • @phiqahzulyhah2927
    @phiqahzulyhah2927 4 года назад +3

    Hi, I had follow all the steps but after installing the apps to my phone the apps open and closed after a few sec. can anyone help?

    • @HausCoding
      @HausCoding 4 года назад +1

      MyDatabaseHelper.java > Cursor readAllData()
      //
      enter db.rawQuery (query, null); into the cursor variable
      if (db != null)
      {
      cursor = db.rawQuery(query, null);
      }

  • @rorisangzensekwenyane456
    @rorisangzensekwenyane456 4 года назад +3

    My list won't display please help

  • @rahulawasthi3466
    @rahulawasthi3466 Год назад

    Suppose there is so much data in database table. Reading it all at once would be infeasible. Can we implement paging to read data from database as user requires in app or there are better solution to it? Please clarify.

  • @maxts8928
    @maxts8928 4 года назад +7

    Спасибо, все очень доступно объяснено

  • @ΓεώργιοςΚουβάτας-γ7χ
    @ΓεώργιοςΚουβάτας-γ7χ 4 года назад +1

    @Stevdza-San. I love your tutorial very much.
    i want to ask you how could i have on this book app a search functionality on the recyclerview? i would be grateful if you can help me with this.

  • @debartoloa
    @debartoloa 2 года назад

    Very Great job my friends!

  • @jeffreyelloreg2882
    @jeffreyelloreg2882 4 года назад +1

    whenever i open the app it crashes and i follow every step in your video and i also triple check everything if there's a problem or if i miss something but everything is according to what in the video and i did check the logcat and it's said "[Sync,SyncAdapter] Failed to sync." and "Caused by: com.google.android.gms.auth.UserRecoverableAuthException: BadAuthentication" pls help me

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

      I haven't used SQLite lib in a while, however I would recommend you to try ROOM library, it's easier to manage and maintain a database.

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

      @@StevdzaSan I'm not really familiar in room library. do you have video tutorial on that?

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

      @@jeffreyelloreg2882 Now it's the time then. Check my playlists here on RUclips.

  • @Pecana80
    @Pecana80 2 года назад

    The only issue is you are loading data on the main thread and if you have a lot of data to load the app will hang and probably cause ANR

  • @tanaykulkarni3275
    @tanaykulkarni3275 4 года назад +1

    Sir i am getting problem in showing data sir it is a glitch of something else please tell me.

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

    Thanks from Brazil

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

    Thank you too, best tuto on android app

  • @hunsendrake2535
    @hunsendrake2535 10 месяцев назад

    how about if i want to display the data in the database inside the fragment with recyclerview?

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

    Great videos, thank you!

  • @fatihdonmez4823
    @fatihdonmez4823 10 месяцев назад

    I press the save button and I back to Home. The recycler view is not up to date.

  • @boucettahani4531
    @boucettahani4531 4 года назад +1

    whenever i click a book in recyclerV app crashes it shows an error here in logcat activity.startActivityForResult(intent, 1);

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

      I have the same, problem did you solve it ?

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

      @@lizaazael5607 No, unfortunately

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

      @@boucettahani4531 I had the same problem, are you using fragments?

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

    Tutorials awesome but one thing is going wrong when I rotate phone from portate to landscape recycling view not showing any data how to fix it portate mode working fine 🙄

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

    Speed is over. But i like it

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

    how to add that back button in second activity.so that. After adding some more books we can see now how many books are there in the list

  • @Manjuu27
    @Manjuu27 2 года назад

    then how you get the value to pass it to other activity?
    like when i want to pass the value with put extra to my edit activity

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

    hii when i press add books button my activity crashed ....

  • @TheGuernica37
    @TheGuernica37 Год назад

    The note will save and show straight away after pressing the top back arrow, but not after pressing the bottom back button. Did anyone solve this problem?

  • @xwznmvd
    @xwznmvd 8 месяцев назад

    the application does not start and a picture pops up: the application keeps stopping. I have no errors in my code

  • @abhijeetjadhav7027
    @abhijeetjadhav7027 2 года назад

    TILL THIS TUTORIAL I've implemented this same way but after adding data it is not updting on list automatically. When I closed app and the. Reopen then data updating. SO SUGGEST ME THE SOLUTION

    • @akash-7711
      @akash-7711 Год назад

      Same problem bro
      Do you have any solution now

  • @NdivhuhoMarole-bc7bx
    @NdivhuhoMarole-bc7bx 4 года назад

    Amazing stuff....

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

    Why wasn't separate class created and then those item in those class shall be used with getter and setter???is this possible in Sqlite like i do it in firestore...MVC

    • @Yes-ok5me
      @Yes-ok5me 4 года назад

      maybe problem in desginign recycleview make it topmargin to 20dp

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

    thanks a lot its work

  • @Badr-zs9vc
    @Badr-zs9vc 4 года назад +1

    bruh do you have course or playlist for a beginner without knowledge of java language ?

    • @StevdzaSan
      @StevdzaSan  4 года назад +3

      I will make a full course somewhere in the future. I will need time to plan, organize, create and so on..

    • @Badr-zs9vc
      @Badr-zs9vc 4 года назад

      @@StevdzaSan Oh I see, thank you anyway, you're really doing great work.

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

    I wish you created a model for book. It would be more understandable.

  • @skanerkodowkreskowychqr3794
    @skanerkodowkreskowychqr3794 11 месяцев назад

    Perfect job

  • @carlosandre2111
    @carlosandre2111 4 года назад +2

    When I add a book it only appears when I restart the application. Anybody know how to solve that?

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

      Same thing here, did you find any solution?

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

      @@XeMiZo use startActivityForResult()

    • @RahulSingh-jc8gv
      @RahulSingh-jc8gv 3 месяца назад

      ​@@carlosandre2111please explain

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

    how to update sqlite database for android app. Like add new table raw and columns

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

    Thanks a lot !

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

    Help after I add book the recyclet view wong update and add the book that I have added. But In DB it got updated.

  • @NguyenSon-f4q
    @NguyenSon-f4q Год назад

    Thank you!

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

    Thanks a lot 😍

  • @huybui8463
    @huybui8463 2 года назад

    if i create back button in layout what should i do to make it show data

  • @agusmuliana
    @agusmuliana 2 года назад

    Hello... I Love your video so much. i would like to ask. If we have 100 record, and we want to display limit every 10 data. how to show next record in recycler view . thanks

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

    Thank you bro thank you brooooo

  • @varthanaravinthiran7745
    @varthanaravinthiran7745 3 года назад +1

    Can u do search filter for this recycler view

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

    i would like to display my data in the recyclerView inside a fragment, my app crashes, does anybody know what to do please?

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

    Hey man great tutorial...can you implement pagination on this ?

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

    Thanks.. You cleared my all problems..

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

    thanks men

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

    hey! i facing problem,
    its shows NO adapter attached ; Skipping Layout

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

      please help me out

    • @Yes-ok5me
      @Yes-ok5me 4 года назад

      @@ashishgautam2842 what do you mean explain more

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

      i sort it out sir,thanks for here,
      i will tell u, when i m in problem

  • @shizanahamadali3748
    @shizanahamadali3748 Год назад

    thank you

  • @hyno
    @hyno 2 года назад

    4:51

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

    Do you know why I cant find method readAllData() ?

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

    I'm creating a chat app and I have to store all the chat messages and I follow the same procedure of urs it is adding in db but it is not displaying all the chat messages that is being stored so I don't know what to do can u pls help me by giving ur email Id so I can give my program

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

    MERCI

  • @ZeeshanBacha-p8q
    @ZeeshanBacha-p8q 10 месяцев назад

    i want search some data by id and set the results in textviews, can someone please proved me code.

  • @dyari009
    @dyari009 4 года назад +2

    thanks bro , but i need tutorial for " when i click recycler view item ' pass sqlite data to second activity ' " plz help me.

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

      holder.owner_name.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
      Toast.makeText(v.getContext(), "name:"+model.getOname(), Toast.LENGTH_SHORT).show();
      }
      });
      put this on onbindview

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

    i can't find my_row id in inflater.. please help from where did this id come?

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

    Hi, I use notifydatasetchanged () in the adapter ?

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

      not updated for mine because I use fragments.....

    • @Yes-ok5me
      @Yes-ok5me 4 года назад

      no need for notify data setchanged in androidmanifiest when you added taht back button touch it it will show you the row immeddiatly

    • @RahulSingh-jc8gv
      @RahulSingh-jc8gv 3 месяца назад

      ​@@Yes-ok5mebut bottom navigation back button click data not show. Please help me

  • @AbdulWahab-bm4gt
    @AbdulWahab-bm4gt 2 года назад

    I LOVE U

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

    You're an absolute legend

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

    Awesome tutorial. I can't figure out the row _id which is passed you mentioned it will be pass dynamically,in update activity but it doesn't ?

  • @MrManu2468
    @MrManu2468 4 года назад +8

    You are WAY too fast for this complex of a topic. Calm down a little, besides that the tutorial is good.

  • @azizprasetyo2523
    @azizprasetyo2523 2 года назад

    this is kotlin or java ?

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

    10:34

  • @damonkopsidas
    @damonkopsidas 3 года назад +1

    I'm trying to integrate this into my app, I am getting an error saying my Cursor object is null. One thing to note is that my Recycler View is in a main page fragment which is opening through the main activity. Any ideas?

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

      Switch to ROOM

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

      @@StevdzaSan what is room ?i have the same isuue

    • @StevdzaSan
      @StevdzaSan  3 года назад +1

      @@lizaazael5607 ROOM library for managing local database. Check the playlist on my channel.

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

    thnx again

  • @Evaldas65
    @Evaldas65 3 года назад +1

    SLOW DOWN! I can barely follow, haha.

  • @БаянАхмет-л1ю
    @БаянАхмет-л1ю 4 года назад

    the database is not saved on other devices

  • @ijutsu2438
    @ijutsu2438 3 года назад +2

    for somebody who just wanna learn SQLite but don't know any of the other overly complex shit(in here), this is not the right video for you.

  • @JustShir0
    @JustShir0 4 года назад +2

    You speak and move around way too fast and barely explain what you're doing.

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

    PLEASE IN YOUR NEXT TUTORIALS TRY TO DO THINGS SLOWER :)

  • @Loko4Games
    @Loko4Games 2 года назад

    After the last line of code, recyclerView.setLayoutManager(new LinearLayoutManager(MainActivity.this));, when I run my app it crashes, anybody know what it can be?

  • @waddupshairie
    @waddupshairie 2 года назад +1

    Hello sir may I know why my app crash after Im trying to display the data

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

    Thaanks man.

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

    Thanks a lot 🥳