• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

problems with row position in Cursor Listview Adapter

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic