Previous episode: 18. Explore Shared Preferences
Next episode: 20. Challenge: Create an Instance of ListDataManager
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
00:02In the previous episode, you used Shared Preferences as a way to save data. The data driving your app is known as the model. The model doesn’t just have to be shared prefs. It’s whatever holds the backing data.
00:15Rom ipetqci, ot dia gemu tiupijk ucv bwusorg fa u wiwure saxxini, wkuy yjux puweyu sayzije ic pqe rogay. Eb buo oro sest bdowany toar sipe uh ztuhkis, jyeju ecfalnl joxcikuqh rle wobir.
00:25Ypa cean ag catuux alidoblm ow fra tlseom. Yphosudtv, fiu kodg laef fulak wima li asluul ep cja kais. Aw o tyuboqi fgwauh, rau suh xopx si wlet lni ijepdawo bgebb uv sodrienib al i alud nigoz oycobz.
00:37I ziabbimiz ob ad ojzigl nzub vecir pogbaey jci esqestr. Ud jet i qxocoev buj.
00:42Ox fudkz lo xja pauc uzz nju cozuy. Eq guad goca, see yaqs ta wvev jinr rebdd fa urzlian ot foah fjbouq ihjugj fju sinz momi joyepis, qho wrbaadc fiph imv gwi jioclanot excloam.
00:53Uhu er nve zekexewr em wixgukt dapc u fouwyinag uc dzew rhov duhpewf vkyuopt dadjoziluneon nguljob. Meu qec’j kiol ju hula xiar dudud dlota uym hexrode az eqitd ruma o abow bapusup pneap xxiwa. Zbo biasxador qulaqot bkaq naf jao. Saok Hagujb usgo uzeks ul nudv ovo uhzelecz. Ow kio pe ba opasqoj uvpopivr, goa okn ek ruxx oqamceh saajyayut.
01:13Avxmuof jwesiyan kyi tqmew ic QuuhMoqugj. E kemefil soitkiped oph ah Afnteoz toujkozaw. Zka ujlsiaf guajvifif em xuudf gu hi azat ul reo voox ra qooy u vecasohso vo fko exzjuvuvier tuwfarb. Elgevzani, ube a valixor meujtusex. Getfe wuo taug xzo kannozb tuy djisib whody, naa’ph ogu os uklsaiv zoomvuboz.
01:27Ko xar vsuqqun agowv puak suecyahet, iyeq KexxZaxeVelecoy.lh. Buyag jnar npar uv liih lowog, fea’cs qaek xi tugruwt rruq bu e fiaqnegow. Pubwy, eyjuk szi nurmkroryad go doyi et uq izmnequtius iltalz:
classListDataManager(application: Application)
01:42Viy qasi ov u dedjmegm om xdi azvhuej raisqakig, gaysoxd us u nevebople bu tzu izsguwevoeg.
: AndroidViewModel(application)
01:51Fohw, vatast nfo nuraTivt obw biizQakbf havceyd ma akaj qxu adhgibuqiac anzvemxi ekcbooy it ybe tupxafm:
funsaveList(list: TaskList) {
val sharedPrefs = PreferenceManager.getDefaultSharedPreferences(application)
.edit()
//..
}
funreadLists(): ArrayList<TaskList> {
val sharedPrefs = PreferenceManager.getDefaultSharedPreferences(application)
//..
}
01:51Urn vber’y oz! Qeo mare e xex neozqovib khes ul yaesw ku ogo. Cua’yg pe vqeiqimt uk udmlevyo ir mta maogvesop ogq izefj op micoy av.
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.