I am trying to make a code to detect a long press on my app icon. When my app icon is long pressed to open the menu(app info, uninstall, and other shortcuts), another screen should be put up so that the user can't get access the options. I just need to know how to detect long press on my app icon.
Have read Detecting a long press with Android, but there is no answer related on how to detect the same on my android app icon?