Can anyone tell me how should i display the phone number and the contact name in a custom list view? The code is pasted below
import android.app.Activity; im
I think you should call cursor.moveToFirst() again before passing it to the SimpleCursorAdapter, as right now you're sending a "finished" cursor.
cursor.moveToFirst()
SimpleCursorAdapter
Besides that, your code seems fine. You can compare it to the code here, which does something similar (But with a user-defined database).