I have used a code that works with SimpleCursorAdapter but in this version of Android it has been depreciated totally. So what to use instead? Because of this setListAdapter is also having errors. As i cannot lose the whole code for this one error, is there any method that can replace this? There has to be some solution.
ListAdapter adapter = new SimpleCursorAdapter(
this,
R.layout.activity_display,
c,
new String[] {"Usn", "Attended", "Missed"},
new int[] {R.id.Usn,R.id.Attended,R.id.Missed});
setListAdapter(adapter);