Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with ContextMenu  RSS feed

 
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


 
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
 
author
Bartender
Posts: 5856
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
Boost this thread!