Display data from File shared preferences in a list

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

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

  • @sketchwarehelp
    @sketchwarehelp  13 дней назад

    Save list to shared preferences using Gson: ruclips.net/video/8Qep6U5ihEA/видео.html

  • @linod7265
    @linod7265 5 лет назад

    Dear Sanjeev thank you very much for your sketchware tutorial videos. You are a great programer. They help me a Lot to start programming an app. Hope you can teach online someday.
    Meanwhile regards from México, you're the best sketchware vídeo maker. Thank you

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

    Really creative , to add a list and retrieve from reference

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

      Easier way is to use Json.

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

      @@sketchwarehelp creative doesn't mean easy , it means different

  • @dariodipauli745
    @dariodipauli745 6 лет назад

    Hello, you can perform operations (example count, delete, add up) on the lists in the shared preference file

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

    Sanjeev Sir,
    If you kindly make data save option catagory wise by using Shared Preferences . I mean make a project with two edit text (one group creation, another list creation) respectively two save button. Output one spinner for group, another custom list will show data by selected spinner item.

  • @tqaquotes9379
    @tqaquotes9379 5 лет назад

    I watched this video for the second time after a while and it's EXCELLENT!

  • @rachidamadou2866
    @rachidamadou2866 5 лет назад +1

    When I change the font size to a certain number after going out of the application, the font becomes the original number

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

    please make next video that show how to make delete or clear list button within the list of second screen. .. plz sir

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

    Hello! Can you help me?
    How to put "No result found" when you search something in listview? Please help.

  • @OWAISZAHEER
    @OWAISZAHEER 5 лет назад +3

    Sir how to delete single item from list view also with file shared prefences

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

      yes.. please add more block for clearing list or deleting items..

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

      Check this
      ruclips.net/video/JQN8o-lFSlo/видео.html

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

      @@sketchwarehelp hi
      thankalot
      when I commented this at that time I was beginner
      I even don't know about variables at that time.
      but then I starts watching your videos then I understand all things
      Now I am creating dynamics App.
      thankyou very much
      love you keep uplaoding videos

  • @RainbowNotFound
    @RainbowNotFound 7 лет назад

    Hey! I have tried this method and it works great! One question.. How does one remove the data from the file and the list? I'm trying to build a app for family for their shopping lists, and I need a method to clear all the data again

    • @sketchwarehelp
      @sketchwarehelp  7 лет назад

      +DevelishNightcore Delete all is easy. But select and delete is complex. Watch this for some idea: ruclips.net/video/LdznYDDG9IQ/видео.html

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

      sorry to be offtopic but does anybody know of a trick to get back into an instagram account??
      I was stupid lost the password. I would love any tips you can offer me.

  • @johnbastardz5976
    @johnbastardz5976 5 лет назад

    thank you very much sir Sanjeev :)

    • @johnbastardz5976
      @johnbastardz5976 5 лет назад

      im succesfully add my web browser...but how to set list on clicked...i want my webview could load history list...please help sir Sanjeev

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

    Nice, that's exactly what I need, thx! Now I want to upgrade it , and change Font for CustomView , found this code for TextFlipper, but have no idea how to adopt it=(
    for (String text : string_list) {
    View custom = getLayoutInflater().inflate(R.layout.customview, null);
    TextView textView = custom.findViewById(R.id.textview1);
    textView.setTypeface(Typeface.createFromAsset(getAssets(), "fonts/cac_champagne.ttf"), 0);
    textView.setText(text);
    viewFlipper.addView(custom);
    }

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

    Hi Sanjeev, please how do I delete an item from the shared preference in the list?

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

      Set value of the key to ....(empty)

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

      Or replace the value with something else

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

      You need not use shared preferences like this.
      You can convert your list to json string and save it using a single shared preferences key.

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

      You can check this ruclips.net/video/Ow97Ysha4Ew/видео.html

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

    when trying to save a warning appears that this word has already been saved? I'm from Viroria (es) Brasil. awaiting response.

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

      If you have a ListMap, you can just convert it to a Json String and save the Json String to Shared preferences using a single key.
      The method used in this video is old and developed before the ListMap to Json String block was introduced.

  • @k.dhineshk.dhineshkumar1054
    @k.dhineshk.dhineshkumar1054 6 лет назад

    Component ( file get Data key ) Why not please Help
    இந்த பட்டன் வரமாட்டேங்கிது உங்களால் உதவி செய்ய முடியுமா

  • @calderasintesa3934
    @calderasintesa3934 5 лет назад

    y con mas variables como lo haria ? gracias

  • @Dharmpujapath
    @Dharmpujapath 6 лет назад +1

    How to delet save item

    • @OWAISZAHEER
      @OWAISZAHEER 5 лет назад

      Sir its remove all the item

    • @OWAISZAHEER
      @OWAISZAHEER 5 лет назад

      Tell how to delete single item from list view

  • @asryrachid5012
    @asryrachid5012 6 лет назад

    hello!!!before anithing think you for this tuto,,,,good larning stil,,,,i kan just asked you about choosing logic Between botton and contact file or ring alarme,please

  • @tqaquotes9379
    @tqaquotes9379 6 лет назад

    Can we show the saved data on the same page e.g. below the "save" button?

  • @justbear729
    @justbear729 6 лет назад

    How to make the new data is add to the top of list, not in bottom?

    • @sketchwarehelp
      @sketchwarehelp  6 лет назад

      Instead of add...to list, use the block insert... at 0 of list

    • @justbear729
      @justbear729 6 лет назад

      thank you sooo much sir

  • @rupalidaud824
    @rupalidaud824 6 лет назад

    Thank you sir....but hamko edittext 3 lene ho to kaise kare....aur data refresh nhi ho raha..hai ek bar data save ho gaya to oo refresh ho na chahiye...plz...give me logic sir...for attendance system project

    • @sketchwarehelp
      @sketchwarehelp  6 лет назад +1

      +shital patil Use three different keys of file shared preferences, like 0,1,2,3,4...(used in video), a0, a1, a2,..(by using join a and toNumber(number Variable) without decimal), and b0, b1, b2,...
      To display three lists together, use CustomView with a linear H and three textviews.

  • @flamexode
    @flamexode 6 лет назад +1

    You should have put a "not " block and an "if" block and not an "if .. else" block in "button1 onclick"

    • @flamexode
      @flamexode 6 лет назад

      I am not saying that you are not good at these things. In fact, I actually use your website and your videos a lot for my self as well. Anyhow, there is room for improvement on anything and everything, so I guess it doesn't matter that much.

  • @arvind4mtpt
    @arvind4mtpt 7 лет назад

    Bhai, mera sketchware app hack kiya kya apne, main iss par hi kaam kar raha tha, but i was using intent for that, thanks for the video bro.
    Ek thoda favour karo bhai, Gold purity converter app par review karna, please.

  • @rachidamadou2866
    @rachidamadou2866 5 лет назад

    How can I save the font size after I exit the application?

    • @sketchwarehelp
      @sketchwarehelp  5 лет назад

      Save font size in file shared preferences. In onCreate if file shared preferences is not empty, set font size using data from shared preferences.

    • @rachidamadou2866
      @rachidamadou2866 5 лет назад

      Sanjeev Kumar Can you make a video so please

    • @rachidamadou2866
      @rachidamadou2866 5 лет назад

      Sanjeev Kumar Want video as an illustration

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

    it overwrites the old data when i save a new one :

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

      That is an old method. A better method is to convert ListMap to json string and save the json string.
      ruclips.net/video/JQN8o-lFSlo/видео.html

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

    Tqq

  • @k.dhineshk.dhineshkumar1054
    @k.dhineshk.dhineshkumar1054 6 лет назад

    இந்த வீடியோ new app போட்டு விடுங்க old app வரமாட்டேங்குது
    The new app will not roll out this video

  • @Beambi-former
    @Beambi-former Год назад

    Can you edit them

  • @xbxb
    @xbxb 7 лет назад

    What if i want to show listmap?

    • @sketchwarehelp
      @sketchwarehelp  7 лет назад +1

      +Jek A Instead of adding File data to string list, add it to List Map. Then set the CustomView of ListView to MapList. Then use onBindCustomView event. Set the TextView in it to position of ListMap.
      Watch any video on Custom ListView in Sketchware.

    • @xbxb
      @xbxb 7 лет назад

      sketchware help Hey. Thanks for the quick reply! I'll give it a try.

  • @kdzmuzo
    @kdzmuzo 6 лет назад

    how can I save the status of a check box. once it's checked, how can I save it as checked even if I close the app? thank you

  • @kdzmuzo
    @kdzmuzo 6 лет назад

    how can I save the status of a check box. once it's checked, how can I save it as checked even if I close the app? thank you

  • @kdzmuzo
    @kdzmuzo 6 лет назад

    how can I save the status of a check box. once it's checked, how can I save it as checked even if I close the app? thank you