android.content.res.Resources$NotFoundException: String resource ID #0x1 Error [duplicate]

Instead of

rollNo.setText(items[position].getRollNo());

you should use

rollNo.setText(Integer.toString(items[position].getRollNo()));

If you try to set integer as text, you call method setText(int resID) and application try to set as text some string resource with this resID.

Leave a Comment