ROOM Database - #2 Read and Write Data | Android Studio Tutorial | Kotlin | 2022

Поделиться
HTML-код
  • Опубликовано: 21 июн 2022
  • ROOM Database - #2 Read and Write Data | Android Studio Tutorial | Kotlin | 2022
    This video with full audio : • ROOM Database - #2 Rea...
    Follow me on Discord: / discord
    Follow me on Instagram: / foxandroidblog
    Follow me on Facebook: / foxandroidblog
    Source Code: github.com/foxandroid/RoomDB
    ---------------------------------------------------------------------------------------------------------------------------------------------------------
    Equipment I Use to Make My videos:
    📱 Phone -: amzn.to/3px6ucS
    🎧Earphones -: amzn.to/3JecI98
    🎙️Mic - : amzn.to/310u7Rp
    🎙️Mic - : amzn.to/3He96SW
    🔊Speakers - : amzn.to/3Hgfzg8
    💾External HardDrive - amzn.to/3JoRzZV
    💻 My PC build: www.amazon.in/shop/foxandroid
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    Hey Developers,
    In this video, I have explained :
    * How to write data to ROOM Database
    * How to read data from ROOM Database
    Read Image From External Storage API 30+ using Kotlin
    • Read Image From Extern...
    Read Image From External Storage API 30+ using Java
    • Read Image From Extern...
    StartActivityForResult Deprecated Solution using Java
    • StartActivityForResult...
    Bottom Navigation Bar - Android Studio | Fragments | Java | 2022
    • Bottom Navigation Bar ...
    Bottom Navigation Bar - Android Studio | Fragments | Kotlin | 2022
    • Bottom Navigation Bar ...
    ROOM Database - #1 Database Initialization
    • ROOM Database - #1 Dat...
    #room #database #android #kotlin
  • НаукаНаука

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

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

    This video with full audio : ruclips.net/video/oeRF5mSaM4Q/видео.html

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

    Hi Foxandroid,
    I want to downgrade my projects Kotlin version to 1.6.21 can you please tell how can I do it.

  •  Год назад

    kotlin : is there any way to copy existing database from assets to android studio , thankyou so much !

  • @ZombeeStar
    @ZombeeStar Год назад +2

    i get an error saying "lateinit property appDB has not been initialized"

    • @ZombeeStar
      @ZombeeStar Год назад +2

      OH MY GOD i am soo stupid.. i didn't watch the whole video first

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

    Hi foxandroid, my app wont read data from the room database..what should be the problem?

  • @jhNic
    @jhNic Год назад +3

    I don't know why but I keep getting the error even I follow step by step, but the code I downloaded from the github is perfectly fine. Did you add anything that you did'nt show us?
    I get "Not sure how to convert a Cursor to this method's return type" error, but works fine if I removed "suspend" in the dao.

    • @Shivam-kz2dg
      @Shivam-kz2dg Год назад

      Yes same error I'm getting as well and I wasted whole day inspecting my code and matching with one in video

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

      Same Problem and he not replying to anyone

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

      Please check the dependency and plugins used in the project also try to clean the project and rebuild

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

      @Ayush You also check the dependency and plugins with the one used in the GitHub repo

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

      @@_foxandroid Already checked I copied from github and pasted in my project it does't work only errors. Please make a new video on room db

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

    Please someone I have an error with :
    binding.firstname.text = data.firstname
    In the main activity the underlined part is from data.firstname and I have checked the naming is fine. ^⁠_⁠^

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

    I'm doing same with dialogue box but it's not happening can you please tell how to do that with dialogue

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

    Sir, I work for school i card, I want to make an app to capture data along with data entry, so please upload a video of it.Sir, I work for school i card, I want to make an app to capture data along with data entry, so please upload a video of it.

  • @LearningMaster-gs1sb
    @LearningMaster-gs1sb Год назад

    What the heck For You it is working for me it is not working in ActivityMainBinding

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

      Please join the weekend doubt session on our discord server

    • @LearningMaster-gs1sb
      @LearningMaster-gs1sb Год назад

      @@_foxandroid Yeah Fine I will join

    • @LearningMaster-gs1sb
      @LearningMaster-gs1sb Год назад

      @@_foxandroidThis program is running but when I implement on other programs, it gets a lot of error

  • @rudya.hernandez7238
    @rudya.hernandez7238 Год назад

    is anyone using java anymore?

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

      yes people are still using java. it is not like kotlin is just another flavor of java like scala

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

    It crashes the app at the Room.databaseBuilder.build(), I'm passing the activity.applicationContext from a Fragment to a ViewModel and that's where I call the getDatabase. In the error it says something about a App_DatabaseImpl doesn't exist

    • @h-man7355
      @h-man7355 Год назад +1

      You need to change your build.gradle file as shown in his previous video (ROOM Database #1). I got the same error you did.
      Specifically in my configuration, I had to change the plugins section to have id 'kotlin-android' and id 'kotlin-kapt' and the dependencies section to have implementation "androidx.room:room-runtime:2.4.3" kapt "androidx.room:room-compiler:2.4.3" and implementation "androidx.room:room-ktx:2.4.3"