Code example for PopupMenu

	interface OnMenuItemClickListener { 
		public boolean onMenuItemClick(MenuItem item);
	PopupMenuWrapper(Activity activity, View view) {
		menu = new PopupMenu(activity, view);
	public void setOnMenuItemClickListener(final PopupMenuWrapper.OnMenuItemClickListener listener) {
		menu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
			public boolean onMenuItemClick(MenuItem item) {
				return false; 
	public void inflate(int menuId) {
		// done without using the PopupMenu.inflate() method, which isn't available on Honeycomb. 
Experience pair programming with AI  Get Codota for Java