aspose file tools
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
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 4875

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
 
Threads others viewed
Connecting Internet from android code
Problem with webview
Tablet support in general and table specific APIs
SWF (flash)files support.
make Android SDK and AVD manager to one option
IntelliJ Java IDE