Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to call context menu in Android emulator

Making this tutorial: http://developer.android.com/resources/tutorials/notepad/notepad-ex1.html I have ListActivity-derived class and onCreateContextMenu, onContextItemSelected overrides. I think that it is like in Windows listbox: right-click listbox item, select popup menu item. However, I don't know how to execute this function in Android simulator: right-click on ListActivity item doesn't work, and I cannot see ContextMenu.

So, what should I do in Android emulator to see the context menu?

like image 622
Alex F Avatar asked Nov 15 '11 12:11

Alex F


2 Answers

Long click on list using mouse until options appears .

like image 198
Shailendra Singh Rajawat Avatar answered Nov 15 '22 03:11

Shailendra Singh Rajawat


Since the Android is designed for hand helds, there really is no idea of right clicking. On a hand held, the context menu is brought up with your finger by pressing a list item and holding until it comes up. In the simulator this becomes a click the mouse and hold.

like image 28
heneryville Avatar answered Nov 15 '22 05:11

heneryville