• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

problems with row position in Cursor Listview Adapter

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.
    Bookmark Topic Watch Topic
  • New Topic