Are you using this code? AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo();
For ExpandableListView, you have to use ExpandableListContextMenuInfo. On Feb 20, 9:06 am, TreKing <[email protected]> wrote: > Folks, > > I have an ExpandableListView with a registered context menu (loaded from an > resource file). When an item is selected I use the getMenInfo() function to > get the ContextMenuInfo associated with the context menu for the clicked > item to determine the index of the group and / or child that was clicked. > > Now, this works great if the item selected is part of the main context menu. > However, if the item selected is part of a sub-menu, getMenuInfo() returns > null. This seems wrong. Why wouldn't you be able to get the menu info from a > sub-menu? > > I am getting around this by saving the menu info off when it's created, but > this seem hacky. Is this a bug, intended behavior, or am I just missing > something obvious? Has anyone gotten this to work like this? > > Thanks. > > ------------------------------------------------------------------------------------------------- > TreKing - Chicago transit tracking app for Android-powered > deviceshttp://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

