wood burning stoves*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problems with row position in Cursor Listview Adapter