Hi everyone!
I need to create few menu items in standard application menu. Can someone write steps to do that? I've looked for solve, but find anything :(
public void makeMenu(Menu menu, int instance) {
//add these items to the full menu
if (instance == Menu.INSTANCE_DEFAULT) {
menu.add(new MenuItem("Refresh", 10, 10) {
public void run() {
//do stuff
}
});
menu.add(new MenuItem("View Details", 10, 10) {
public void run() {
//do stuff
}
});
}
//add these items to the both the primary actions menu and the full menu
menu.add(new MenuItem("Refresh", 10, 10) {
public void run() {
//do stuff
}
});
menu.add(new MenuItem("View Details", 10, 10) {
public void run() {
//do stuff
}
});