I am pretty new to android. I went through some tutorials and articles to work in android development. Just started to develop the app. I am progressing with texts and buttons etc.
I am showing some texts in view. If I long press the text in app, it shows the options for cut, copy etc.,
I just want to add one more item to this called "Greet". How to do this.
In iOS I am able to do this using the following code..
UIMenuItem *highlightMenuItem = [[UIMenuItem alloc] initWithTitle:@"Greet" action:@selector(highlight)];
[[UIMenuController sharedMenuController] setMenuItems:[NSArray arrayWithObject:highlightMenuItem]];
Following is the output in iOS.
How to do this same thing in Android.
I looked in some tutorials but all of them focused on adding new menus to app. I am looking for add a item to cut/copy menu.