The moose likes Android and the fly likes Problem with ContextMenu Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "Problem with ContextMenu" Watch "Problem with ContextMenu" New topic
Author

Problem with ContextMenu

Bilal A.Siddiqui
Ranch Hand

Joined: Feb 22, 2010
Posts: 31

Hi All

I am unable to import

android.view.Menu.Item;
android.view.View.OnPopulateContextMenuListener;


my android sdk version is

SDK platform Android 2.1, API 7, revision 1



Regards
Bilal
Margaret O'Sullivan
Greenhorn

Joined: Feb 07, 2011
Posts: 1
Hi Bilal,

I have the same problem but with android 2.2.

Did you resolve this issue? If so could you please let me know, it would be much appreciated.

Thanks

This message was edited 1 time. Last update was at by Margaret O'Sullivan

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 4489

Is the first one a typo? Did you mean:

android.view.MenuItem (no dot between Menu and Item)

The second one is not in the Android SDK. I would also suspect a typo but I found several old tutorials that use it. Perhaps it was from an earlier version and is no longer present. I see OnCreateContextMenuListerner, but not OnPopulateContextMenuListener.


JBoss In Action
 
 
subject: Problem with ContextMenu
 
developer file tools