Hi, I'm doing instrment test on context menu to verify following things: 1. The number of menu item in context menu is correct. 2. Text of each menu item is right. 3. Click action of each menu item is right.
Here is my code to call context menu which can be run successfully: View v = _listactivity.getListView().getChildAt(0); Instrumentation inst = getInstrumentation(); TestUtil.longclickOn(inst, v); inst.waitForIdleSync(); Then I want to get Menu object of the context menu, so that I can get menu.size(), access each menu item and check them. However I have no idea of how to get the Menu object. Is there any method like View.getContextMenu(), or others? Thanks for your help! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---