aspose file tools*
The moose likes Android and the fly likes Problem with ContextMenu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
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: 5778
    
    7

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
 
jQuery in Action, 2nd edition
 
subject: Problem with ContextMenu
 
Similar Threads
make Android SDK and AVD manager to one option
Tablet support in general and table specific APIs
Problem with webview
SWF (flash)files support.
Connecting Internet from android code