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

2010-01-08 Thread sdphil
so how do I get the position of the item that was long pressed? On Jan 8, 1:20 pm, Romain Guy romain...@android.com wrote: 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

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

2010-01-08 Thread Romain Guy
You get that position as part of the long press callback. On Fri, Jan 8, 2010 at 1:23 PM, sdphil phil.pellouch...@gmail.com wrote: so how do I get the position of the item that was long pressed? On Jan 8, 1:20 pm, Romain Guy romain...@android.com wrote: There's no selection in touch mode,

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

2010-01-08 Thread sdphil
ah... very good - thanks. fyi - for anyone else reading this and wants to know - here's what i did -- @Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) { super.onCreateContextMenu(menu, v, menuInfo);