[android-developers] GridView.getSelectedItemPosition() always returns -1

2010-01-08 Thread sdphil
I have googled around and I saw some posts about being in touch screen mode -- I don't fully understand what that means. However, I cannot seem to get this call to work - it always returns -1. I am doing a long press on an item in a grid view, and I've registered for the long press for the

Re: [android-developers] GridView.getSelectedItemPosition() always returns -1

2010-01-08 Thread Romain Guy
There's no selection in touch mode, that's why you get these results. On Fri, Jan 8, 2010 at 12:07 PM, sdphil phil.pellouch...@gmail.com wrote: I have googled around and I saw some posts about being in touch screen mode -- I don't fully understand what that means. However, I cannot seem to