tags:

views:

22

answers:

1

I'm getting all kinds of errors when using res/menu/menu_home.xml, and my project won't build. That's when I remembered that there was a way to create menus from java code instead of declaring it via xml. Does someone remember how to do that?

A: 

Have you taken a look at the tutorial for the Notepad?

Specifically the onCreateContextMenu() and onContextItemSelected() methods

x1886x