On Feb 9, 9:44 pm, Odessa Silverberg <silverberg.ode...@googlemail.com> wrote: > By simply calling theonCreateContextMenuitself inside the > onListItemClick. i.e. > > onCreateContextMenu(null, v, null); (where v ist the reference of the > list view passed by the onListItemClick). Dunno if you need to pass > the references of menu/menuinfo, but don't think so. > > If you're not using the menu/menuitem in your current code, then it > shouldn't be a problem. if you're using it, you should check inside > theonCreateContextMenuif menu is null and create it if necessary > otherwise use the passed reference
I don't think this is possible, since Menu and ContextMenu are interfaces. The framework creates the concerete implementation object then passes it to onCreateContextMenu(). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---