Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problems with row position in Cursor Listview Adapter  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all, Good day, please kindly help me review this code and tell me what i am doing wrong.
My listview is not returning the correct row position. it keeps giving me the previous row entry
and not the one clicked and it gives me the error "android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0"
when i try to click on the first entry in the list.

I have tried and reviewed examples but no success. I have also tried to use OnListItemClick() method
but that gives me a "NullPointerException", i don't know why. Its been so frustrating for some time now.
Thanks in advance for your time.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!