This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Android and the fly likes problems with row position in Cursor Listview Adapter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "problems with row position in Cursor Listview Adapter" Watch "problems with row position in Cursor Listview Adapter" New topic
Author

problems with row position in Cursor Listview Adapter

manuel unogu
Greenhorn

Joined: Sep 15, 2010
Posts: 1
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.
 
Don't get me started about those stupid light bulbs.
 
subject: problems with row position in Cursor Listview Adapter
 
Similar Threads
listview with checkbox problem
BaseAdapter: getView() problem
How to Create two parallel listViews where each list view contains a text and a icon
Can not click on listView
styling items of a ListView