Display data from File shared preferences in a list

  Рет қаралды 28,123

Sanjeev Kumar

Sanjeev Kumar

Күн бұрын

Пікірлер: 61
@sketchwarehelp
@sketchwarehelp 18 күн бұрын
Save list to shared preferences using Gson: kzbin.info/www/bejne/boLIoWmLas6be6M
@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
@tqaquotes9379
@tqaquotes9379 5 жыл бұрын
I watched this video for the second time after a while and it's EXCELLENT!
@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
@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.
@dariodipauli745
@dariodipauli745 6 жыл бұрын
Hello, you can perform operations (example count, delete, add up) on the lists in the shared preference file
@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 жыл бұрын
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 kzbin.info/www/bejne/gIKxaaJjoauGotE
@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
@rachidamadou2866
@rachidamadou2866 5 жыл бұрын
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
@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 жыл бұрын
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 kzbin.info/www/bejne/haicaIypncZne9k
@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 жыл бұрын
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.
@tqaquotes9379
@tqaquotes9379 6 жыл бұрын
Can we show the saved data on the same page e.g. below the "save" button?
@sketchwarehelp
@sketchwarehelp 6 жыл бұрын
Yes. Use the same code
@tqaquotes9379
@tqaquotes9379 6 жыл бұрын
Thank You Very Much. amazingly fast reply...Wah!!!
@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: kzbin.info/www/bejne/gpXdn4x6eaxsf7M
@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); }
@calderasintesa3934
@calderasintesa3934 5 жыл бұрын
y con mas variables como lo haria ? gracias
@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
@Dharmpujapath
@Dharmpujapath 6 жыл бұрын
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
@Beambi-former
@Beambi-former Жыл бұрын
Can you edit them
@sketchwarehelp
@sketchwarehelp Жыл бұрын
Yes
@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
@k.dhineshk.dhineshkumar1054
@k.dhineshk.dhineshkumar1054 6 жыл бұрын
Component ( file get Data key ) Why not please Help இந்த பட்டன் வரமாட்டேங்கிது உங்களால் உதவி செய்ய முடியுமா
@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. kzbin.info/www/bejne/gIKxaaJjoauGotE
@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.
@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 жыл бұрын
+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 жыл бұрын
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.
@dhanjitdeka3731
@dhanjitdeka3731 2 жыл бұрын
Tqq
@xbxb
@xbxb 7 жыл бұрын
What if i want to show listmap?
@sketchwarehelp
@sketchwarehelp 7 жыл бұрын
+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
@k.dhineshk.dhineshkumar1054
@k.dhineshk.dhineshkumar1054 6 жыл бұрын
இந்த வீடியோ new app போட்டு விடுங்க old app வரமாட்டேங்குது The new app will not roll out this video
@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
How to use modulus arithmetic operator block in Sketchware?
3:50
Sanjeev Kumar
Рет қаралды 2,6 М.
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 7 МЛН
Simple Database app in sketchware
23:14
Sanjeev Kumar
Рет қаралды 39 М.
7 Database Design Mistakes to Avoid (With Solutions)
11:29
Database Star
Рет қаралды 86 М.
Firebase: Send and retrieve data using Sketchware
10:54
Sanjeev Kumar
Рет қаралды 38 М.
What is OpenTelemetry?
12:55
Highlight
Рет қаралды 12 М.
Multiple EditText in Custom Dialog in Sketchware
10:01
Sanjeev Kumar
Рет қаралды 15 М.
JWT авторизация. Основы JWT - механизма.
6:45
Хочу вАйти
Рет қаралды 16 М.
Simple database app using Firebase and json in Sketchware
13:27
Sanjeev Kumar
Рет қаралды 32 М.
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 7 МЛН