This video shows how to save a series of data from an Edittext field to File shared preferences, and then display it in a ListView on another screen, in Sketchware.
Пікірлер: 61
@sketchwarehelp3 ай бұрын
Save list to shared preferences using Gson: kzbin.info/www/bejne/boLIoWmLas6be6M
@linod72655 жыл бұрын
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
@debasisht72694 жыл бұрын
Really creative , to add a list and retrieve from reference
@sketchwarehelp4 жыл бұрын
Easier way is to use Json.
@debasisht72694 жыл бұрын
@@sketchwarehelp creative doesn't mean easy , it means different
@OWAISZAHEER6 жыл бұрын
Sir how to delete single item from list view also with file shared prefences
@johntheanalyst36234 жыл бұрын
yes.. please add more block for clearing list or deleting items..
@sketchwarehelp4 жыл бұрын
Check this kzbin.info/www/bejne/gIKxaaJjoauGotE
@OWAISZAHEER4 жыл бұрын
@@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
@tqaquotes93796 жыл бұрын
I watched this video for the second time after a while and it's EXCELLENT!
@tubertutionpro94824 жыл бұрын
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.
@dariodipauli7456 жыл бұрын
Hello, you can perform operations (example count, delete, add up) on the lists in the shared preference file
@realblon1x4 жыл бұрын
Hello! Can you help me? How to put "No result found" when you search something in listview? Please help.
@StartupInMinutes3 жыл бұрын
Hi Sanjeev, please how do I delete an item from the shared preference in the list?
@sketchwarehelp3 жыл бұрын
Set value of the key to ....(empty)
@sketchwarehelp3 жыл бұрын
Or replace the value with something else
@sketchwarehelp3 жыл бұрын
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.
@sketchwarehelp3 жыл бұрын
You can check this kzbin.info/www/bejne/haicaIypncZne9k
@johntheanalyst36234 жыл бұрын
please make next video that show how to make delete or clear list button within the list of second screen. .. plz sir
@rachidamadou28666 жыл бұрын
When I change the font size to a certain number after going out of the application, the font becomes the original number
@tqaquotes93796 жыл бұрын
Can we show the saved data on the same page e.g. below the "save" button?
@sketchwarehelp6 жыл бұрын
Yes. Use the same code
@tqaquotes93796 жыл бұрын
Thank You Very Much. amazingly fast reply...Wah!!!
@Dharmpujapath6 жыл бұрын
How to delet save item
@OWAISZAHEER6 жыл бұрын
Sir its remove all the item
@OWAISZAHEER6 жыл бұрын
Tell how to delete single item from list view
@ggregg75844 жыл бұрын
when trying to save a warning appears that this word has already been saved? I'm from Viroria (es) Brasil. awaiting response.
@sketchwarehelp4 жыл бұрын
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.
@RainbowNotFound7 жыл бұрын
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
@sketchwarehelp7 жыл бұрын
+DevelishNightcore Delete all is easy. But select and delete is complex. Watch this for some idea: kzbin.info/www/bejne/gpXdn4x6eaxsf7M
@khalilchristian17743 жыл бұрын
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.
@johnbastardz59765 жыл бұрын
thank you very much sir Sanjeev :)
@johnbastardz59765 жыл бұрын
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
@justbear7296 жыл бұрын
How to make the new data is add to the top of list, not in bottom?
@sketchwarehelp6 жыл бұрын
Instead of add...to list, use the block insert... at 0 of list
@justbear7296 жыл бұрын
thank you sooo much sir
@kirillborodin49654 жыл бұрын
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); }
@Beambi-former Жыл бұрын
Can you edit them
@sketchwarehelp Жыл бұрын
Yes
@calderasintesa39345 жыл бұрын
y con mas variables como lo haria ? gracias
@rachidamadou28666 жыл бұрын
How can I save the font size after I exit the application?
@sketchwarehelp6 жыл бұрын
Save font size in file shared preferences. In onCreate if file shared preferences is not empty, set font size using data from shared preferences.
@rachidamadou28666 жыл бұрын
Sanjeev Kumar Can you make a video so please
@rachidamadou28666 жыл бұрын
Sanjeev Kumar Want video as an illustration
@flamexode6 жыл бұрын
You should have put a "not " block and an "if" block and not an "if .. else" block in "button1 onclick"
@flamexode6 жыл бұрын
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.
@RustyLaughTube4 жыл бұрын
it overwrites the old data when i save a new one :
@sketchwarehelp4 жыл бұрын
That is an old method. A better method is to convert ListMap to json string and save the json string. kzbin.info/www/bejne/gIKxaaJjoauGotE
@k.dhineshk.dhineshkumar10546 жыл бұрын
Component ( file get Data key ) Why not please Help இந்த பட்டன் வரமாட்டேங்கிது உங்களால் உதவி செய்ய முடியுமா
@rupalidaud8247 жыл бұрын
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
@sketchwarehelp7 жыл бұрын
+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.
@asryrachid50126 жыл бұрын
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
@kdzmuzo6 жыл бұрын
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
@xbxb7 жыл бұрын
What if i want to show listmap?
@sketchwarehelp7 жыл бұрын
+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.
@xbxb7 жыл бұрын
sketchware help Hey. Thanks for the quick reply! I'll give it a try.
@dhanjitdeka37313 жыл бұрын
Tqq
@arvind4mtpt7 жыл бұрын
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.
@k.dhineshk.dhineshkumar10546 жыл бұрын
இந்த வீடியோ new app போட்டு விடுங்க old app வரமாட்டேங்குது The new app will not roll out this video
@kdzmuzo6 жыл бұрын
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
@kdzmuzo6 жыл бұрын
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