Change a value in mutable list in Kotlin

Issue I got this mutablelist: [Videos(id=4, yt_id=yRPUkDjwr1A, title=test4, likes=0, kat=pranks, ilike=false), Videos(id=3, yt_id=WkyUU9ZDUto, title=test3, likes=0, kat=pranks, ilike=false), Videos(id=2, yt_id=B_X9OQqtduE, title=test2, likes=0, kat=animals, ilike=false), Videos(id=1, yt_id=ywaKlGNiv80, title=test1, likes=0, kat=animals, ilike=false)] How can I change ilike to true where id is 2

Continue reading

BEGIN_ARRAY but was STRING at line 1 column 1 java android sketchware

Issue OnResponse code : card_list = new Gson().fromJson(_response, new TypeToken>>(){}.getType()); if (card_list.size() > 5) { recyclerview1.setAdapter(new Recyclerview1Adapter(card_list)); }else{ SketchwareUtil.showMessage(getApplicationContext(), _response); } Json 200 Result like : { “user”: [ { “id”: “string”, “address”: “string”, “contact”: “string”, “name”: “string”, “description”: “string”,

Continue reading