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.
More Related Contents:
- Android Kotlin: Getting a FileNotFoundException with filename chosen from file picker?
- What to do on TransactionTooLargeException
- Getting Exception java.lang.NoClassDefFoundError: com.google.firebase.FirebaseOptions after updating to the new firebase
- How to grant MODIFY_PHONE_STATE permission for apps ran on Gingerbread
- Using AsyncTask
- How to add manifest permission to an application?
- Android, ListView IllegalStateException: “The content of the adapter has changed but ListView did not receive a notification”
- Best practice: AsyncTask during orientation change
- java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
- Getting android.content.res.Resources$NotFoundException: exception even when the resource is present in android
- Android: Unable to instantiate activity / ClassNotFoundException
- Android Exception: Did you forget to call ‘public void setup (LocalActivityManager activityGroup)’
- android View not attached to window manager
- OutofMemoryError: bitmap size exceeds VM budget (Android)
- java.lang.NoClassDefFoundError: android.support.v7.appcompat.R$styleable
- hardcoded string “row three”, should use @string resource
- Android XML: RuntimeException: Failed to resolve attribute at index 6
- Android ListView addHeaderView() nullPointerException for predefined Views defined in XML
- SQLite exception: Database is locked issue
- ArrayIndexOutOfBoundsException with custom Android Adapter for multiple views in ListView
- What is the best sdk version for com.google.android.gms:play-services-maps?
- Handling click events on a drawable within an EditText
- How do I prevent the status bar and navigation bar from animating during an activity scene animation transition?
- How do you check the internet connection in android? [duplicate]
- Read & writing arrays of Parcelable objects
- How to send hashmap value to another activity using an intent
- How to merge two mp3 files into one (combine/join)
- How to send email in Android ? [duplicate]
- How to pass id and application to a viewModel/viewModelFactory in Jetpack Compose?
- Different notification sound not working in Oreo