Re: [android-developers] Re: getContextMenuInfo() returns null on sub-menu MenuItems

2010-03-13 Thread TreKing
I've submitted a bug report for this issue: http://code.google.com/p/android/issues/detail?id=7139 - TreKing - Chicago transit tracking app for Android-powered devices

Re: [android-developers] Re: getContextMenuInfo() returns null on sub-menu MenuItems

2010-03-02 Thread TreKing
Thought I'd bring this back up one more time (maybe getting a Google Engineer to comment on this) before I submit this as a bug. This also holds true for AdapterView.AdapterContextMenuInfo. Thanks. -

[android-developers] Re: getContextMenuInfo() returns null on sub-menu MenuItems

2010-03-02 Thread Joe
I've recently run into this issue as well, where I was relying on MenuInfo containing the AdapterContextMenuInfo (for position in the ListView) on the submenu. The only workaround I've found so far is to store the MenuInfo in a member variable while the context menu is open, and release it

[android-developers] Re: getContextMenuInfo() returns null on sub-menu MenuItems

2010-02-21 Thread NoraBora
Are you using this code? AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo(); For ExpandableListView, you have to use ExpandableListContextMenuInfo. On Feb 20, 9:06 am, TreKing treking...@gmail.com wrote: Folks, I have an ExpandableListView with a registered context

Re: [android-developers] Re: getContextMenuInfo() returns null on sub-menu MenuItems

2010-02-21 Thread TreKing
On Sun, Feb 21, 2010 at 10:30 AM, NoraBora noranb...@gmail.com wrote: Are you using this code? AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo(); For ExpandableListView, you have to use ExpandableListContextMenuInfo. Yup. Here's a sample: @Override public void