Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with ContextMenu

 
Bilal A.Siddiqui
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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


 
Margaret O'Sullivan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic