Answers for "android.content.res.Resources$NotFoundException: String resource ID #0x0"

0

android.content.res.Resources$NotFoundException: String resource ID

List<int> list = {1 , 2 }
Toast.makeText(mainActivity , list.size() , Toast.LENGTH_SHORT).show();

Can not Toast int , it should be
Toast.makeText(mainActivity , String.valueOf(list.size()) , Toast.LENGTH_SHORT).show();
Posted by: Guest on September-04-2021

Code answers related to "android.content.res.Resources$NotFoundException: String resource ID #0x0"

Browse Popular Code Answers by Language