I am currently developing a soundboard for android and I have ran into a bit of a problem. I successfully implemented a context menu that allows the user to select whether they want to save the mp3 as a ringtone or notification sound. My problem lies with the context menu. I want to be able to save a certain mp3 as a ringtone/notification based on which button they long press. How can you tell the onContextItemSelected which button was long pressed?
I am currently developing a soundboard for android and I have ran into a
Share
The Button that you are talking about corresponds to a
MenuItem.This MenuItem is passed to you in
onContextItemSelected().