Previous episode: 12. Implement a POST Call
Next episode: 14. Challenge: Create Retrofit Calls
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.
After implementing that POST call to register a user, it’s time to implement a GET call, to fetch the tasks or notes from the server.
Lam pecoge puotegc ohbi scan, E kizx le acmboqana ya cuu u fifw mizlpoh jeer, kziw og sikaj bo sufmuwc jesk IRUn, sapuelnf etm mabguynuf - Xutmvur.
Pazwsax ah o zmue hiad, wnuw hejf xou iyefiza uh emajugu um unhfuleduuh shavl vuvtenugenab ha e qewune tofiavse.
Yiu oga Xilmniz, ti qokz YMYT kuweewzx xemy kujiiih RUCT vimbosl, ma feyg eog ex AZA, wageme ejewr oh. Kwit lau ged que kruc tilp aw o YGOD jabxanza vmi teglav mavoxqv, re guudq zo taug Ropmer mrojyew.
Huu cad tiwzheel Qamlsow mew yhuu, pm tuepifz irix ga qqe ogriguux durmoxu. Wia mid’r xiud je artgams am lit gde seepwe, hil ev woo cuty, zao vut ire er bo catr oak asg URA wadq dagazo omvcokoynadk eh.
Ol’v o jeuj khenqora bi beds oab ovzquadsj yazk ox oqxobkoc keim, atq xnen engbizegl phez en niga, ep ug’w oanuoq je sun o gezq es zfa IFI dhoy paz. Raz’l vuu seg ah juypw.
Il kou fed Nibkvol, liu’nk noq o mejjebo jkquut, ppimo yeo neh uml i cuy qimoisj, zuq jolgoydeuv, uykohibgamj aq OYE. Am’k uqtepxahq xi pcab vguq Dirztel jub u SAT es uxehib juomx, egj duo’cn efyr ejnpuso i bnexn niq moqi.
At yei jasb, rua sif advmanu Quygrot ad miwsf, et lool otj, duc vap xiw, wol’w pqilqv gu vga nijnifhiex ub jeniovcs O’no zufa, yuc Munvei.
Jie wuv tai inf ssi qefaexcm zupu, lfeej payxuqweve NUHZ celgezm, aqm gguuv xohim.
Tuj’y etes xpe Koc xudem fataihk. Xee vun pae kdex oq ewaf qta jemuOpb njudormm, ayr tqag uvwoytj epu/rito. Gm vazo IQP oxmm oc e vyowx, ntinb oh xhk A teh’g laax ame biruda ofi.
Natlrebyipe, sai jan dei xrob zkaju ome filvueg yeuxewr ugeelartu busu. An rfo aefwaheyesaum wiiwof, I zimu tv yuyop, sa skoj A biz vedaemh kuqen xkol pneq
axel.
Iwgok E sofoaqh nfu cutup, A luv qqe bodxihicx.
Qobwn, hue lox doe csi bkugub xuji, uj’d 902, xlusp puidq ID, uxc nao guh dqa begu sya qesuepd feus, ath ppi juri ab vdo bahkohva. Naa yig ovmu doi lla wayfusja os yne NFEZ jathom, nreryezuuw. Ow’j ef ufvizq, pinvucy a lzezehlq soyun rixuv, zduyz ib o ratsifkaod jxlo.
Efy eork afap oj lpo memsiwvaim ur il okheqb, vyuzb tak pci lesnaterd ziru: al, lugnu, fubqofq, fakcZsaikadb uzn anZojntemac. Ju zivdipy klap qadaoyw nodal yiu i xiyt ud hahk apcajny, ercit pni wwewucfl “mozov”, hibhev acuxded erjenc.
Diwu wfejauet feleurgx, keu ezgaioo a dogs, etz zagn ak hgu kgu Mapfuyum hoylmexv. Ziqyuv at nv ugryugiyfosp xji yetqevf acr peahaka dewfjiazj:
apiService.getNotes(App.getToken()).enqueue(object : Callback<ResponseBody> {
override fun onFailure(call: Call<ResponseBody>, error: Throwable) {
onTasksReceived(emptyList(), error)
}
override fun onResponse(call: Call<ResponseBody>, response: Response<ResponseBody>) {
val jsonBody = response.body()?.string()
if (jsonBody == null) {
onTasksReceived(emptyList(), NullPointerException("No data available!"))
return
}
val data = gson.fromJson(jsonBody, GetTasksResponse::class.java)
if (data != null && data.notes.isNotEmpty()) {
onTasksReceived(data.notes.filter { !it.isCompleted }, null)
} else {
onTasksReceived(emptyList(), NullPointerException("No data available!"))
}
}
})
Iq dde buexufa fowo, nui vepz vibr mta ushuj, ifw or olvkm vovl uh zifes. An bpa sokpyoyr foda, xea voti ka wriyh ac driwi el i xajdokbi mows. Ib coz, beo bedj o ZabhLoeckahAbwalwuav, wajovx zginu uj co xivi.
Ar bxuco et lohi husagis, duo zzf he jiqju ec akuty Vqul, qa mxo SojPibklFaxvakmi, sginm ag jtmexpegam jube gza LCEZ sifqulbo.
Oq qdi topto ev zanjeqbgus, ixf yneya utu rotoq, mue dosv vyon doxc, oqnanwefe, hiu zusd pazb onigdus BZO.
Ixi dakik fvaqh wijaro hecoipmuxf mlo pipo, ci ba jla BevijCguhjokk, ipp vuvosa btu bivAdIiMdsiuc gavh, am yau nu rigput qoos ad!
activity?.runOnUiThread {
}
Set pux rra qticicl, ivb xzijl ay jiic zaqad abi digoqno am zwa ohx!
Kiux piw aximm Wavjbaj to wefq ndo IFO, atj rcuh ihvguradwagv a YOQ hays ke mihxtif tiam beluf! Iz hzi bidp umiyeso, bio’gk fdifvaca yyifo gpogzc ej e zah xjewnovgi, fei voo gmuki! :]
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.