Understanding JSON and using GSON in Android with Kotlin and Android Studio

Поділитися
Вставка
  • Опубліковано 4 січ 2025

КОМЕНТАРІ • 46

  • @tutorialsEU
    @tutorialsEU  4 роки тому +3

    🚀 Android & Kotlin Masterclass - Become a serious Android app developer with our best-selling masterclass: bit.ly/3PaKdhS

  • @KonstantinGanchin
    @KonstantinGanchin 2 роки тому +2

    That was very elegant code, man! And the sound quality is brilliant! English is also very pleasent to understand! Great content!

  • @klaushopf2101
    @klaushopf2101 4 роки тому

    Bro geil das du wieder auf youtube was machst .. back to the roots :) mach aufjedenfall weiter hier :)

  • @sanjogpanda2597
    @sanjogpanda2597 4 роки тому

    Please put more content on android. You are helping us a lot.

  • @dantegraphics6259
    @dantegraphics6259 4 роки тому +1

    Hey, i'm having an issue at 20:38 where my tv_name are all red and the holder.tvName.text above that code is also red. Well, the text part is. Not very experienced when it comes to kotlin and android studio and I can't seem to figure what the issue is. Any suggestions?

    • @dantegraphics6259
      @dantegraphics6259 4 роки тому +3

      I found the issue. in my build.gradle i didnt have an id 'kotlin-android-extensions' so i added it in as a plugin below the others. This worked for me so if anyone has a similar issue here is a potential fix

    • @tutorialsEU
      @tutorialsEU  4 роки тому +2

      Hi Dante. Yes that's one way to solve it. I made a video on the three ways and which one is the best: ua-cam.com/video/4GXflIdrlus/v-deo.html

    • @dantegraphics6259
      @dantegraphics6259 4 роки тому +2

      @@tutorialsEU Ty! By the way, do you have a tutorial on sorting these lists/recycler views? I'm making an app for my school assessment task and i need to incorporate bubble sorts, insertion sorts and selection sorts and tbh I don't really know how to go about it.

    • @dantegraphics6259
      @dantegraphics6259 4 роки тому +1

      Another thing, I would like to have the user add their own elements into the JSON array. From what I understand, JSON file is read only so it needs to be saved to internal storage and then can be edited. What I really want to do is make a button that can allow the user to 'add' their own user to the list. Is there a way to do this after following this tutorial?

    • @YonatanLeulseged-o6j
      @YonatanLeulseged-o6j Рік тому

      This works. Thank you@@dantegraphics6259

  • @vanfrancisco4573
    @vanfrancisco4573 3 роки тому +1

    I can't seem to access assets.open() method it returns unresolved reference. tried importing packages but still won't cut .

  • @unknownurs2367
    @unknownurs2367 3 роки тому

    What if we have multiple arrays, how we can fetch those array names and display array content when we click on particular array object.
    How sort arrays in json alphabetical order.

  • @tmjromao
    @tmjromao 2 роки тому +1

    Hello, found this video. Well explained but how would do this in 2022, with Jetpack Compose?

    • @DigiWongaDude
      @DigiWongaDude Рік тому

      Let me know if you found any help
      please?

  • @adrilseanbartolome9102
    @adrilseanbartolome9102 3 роки тому

    this used to be easy in webdevelopment lol. didn't expect GSON kotlin tutorials to be this long. btw, still good tutorial :)

  • @dieisonrochadasilveira3496
    @dieisonrochadasilveira3496 2 місяці тому

    How do I search or filter through searchView?

  • @Sacknase381
    @Sacknase381 Рік тому

    if i try to do userlisst[i].name the whole app crashes

  • @md.shorifulhasan3149
    @md.shorifulhasan3149 2 роки тому

    One of my apps is developed by Kotlin language. After fetching my Data from API by using the retrofit library in my app then I am facing a memory problem on my virtual device.

  • @jacques-oliveira-01
    @jacques-oliveira-01 3 роки тому

    Amazing explanation pretty good lesson, thanks man!

  • @Jesus-ez7sj
    @Jesus-ez7sj 3 роки тому +1

    I have several errors, although I did everything the same, could you help me. Unresolved reference: rvUsersList , Unresolved reference: Gson ,Unresolved reference: LinearLayoutManager ,Unresolved reference: rvUsersList , Unresolved reference: JSONException ,Unresolved reference: Charset ,Unresolved reference: IOException

  • @anthonyburke5147
    @anthonyburke5147 3 роки тому

    Excellent video! Thanks heaps

  • @chalot001
    @chalot001 4 роки тому

    Thanks a lot, my teacher. You are a good man!

  • @kingfisher3791
    @kingfisher3791 3 роки тому +1

    Plz do video on motion layout

  • @samkitsanghavi4927
    @samkitsanghavi4927 3 роки тому +1

    Sir can you make a video on expandable listview? fetching nested data from json file using gson in kotlin?

    • @tutorialsEU
      @tutorialsEU  3 роки тому

      This sounds like quite a mouth full. Will check it out, but can't promise it.

  • @juhanamkedirakumer4730
    @juhanamkedirakumer4730 3 роки тому +1

    so much helpful. thank you for your hard work to post such an excellent video. sir do you have the same video while parsing JSON from website. now you are fetching from the asset folder in the android main folder. I want the same code but only fetching the json data from the website. please send the code or guide me on how to fetch the JSON for this project from the website. Thank you in advance

  • @jacecrawford6015
    @jacecrawford6015 3 роки тому +2

    Started learning all this about two months ago. Really difficult when things like synthetic x has changed so much and all the guides are showing an older way of connecting view. Even stuff only 6 months old has a ton of depracated concepts.

  • @forooghvarmazyar9759
    @forooghvarmazyar9759 2 роки тому

    thanks a lot :)

  • @diggerfdf
    @diggerfdf 4 роки тому

    Another suggestion. Using JSON to prepare data in Unity games. Does JSON integrates with C# like in python?

  • @bikramchettri9405
    @bikramchettri9405 4 роки тому +1

    Sir can you make a tutorial on making music player app?

  • @alokapatel8159
    @alokapatel8159 4 роки тому

    Sir is this video included in your 45 hour long course on Android Development on Udemy ?

    • @tutorialsEU
      @tutorialsEU  3 роки тому

      Hi Aloka, for some reason I see this message just now. Yes it is included

  • @dkmarwat5806
    @dkmarwat5806 4 роки тому

    good sir

  • @hermanheunis9354
    @hermanheunis9354 2 роки тому

    Gson fun starts at 38:04

  • @hajyosrihosni786
    @hajyosrihosni786 4 роки тому

    thx

  • @Sacknase381
    @Sacknase381 Рік тому

    i have no charset class, please dont skip as much stuff

  • @12345charliebrown
    @12345charliebrown 3 роки тому

    import json
    obj = json.loads(s)
    dont really need an hour long video to use json in python.

    • @12six69
      @12six69 2 роки тому

      takes more time

    • @12345charliebrown
      @12345charliebrown 2 роки тому

      @@12six69 my point being why isn't there a defacto json serializer built into standard Kotlin library?

  • @santi7761
    @santi7761 2 роки тому

    amazing, it's a worst tutorial