I have made a button in the app that creates a shortcut button of the app, now what i want to do is, when the user presses this button some function of the activity should execute. The shortcut button should not open the application but should execute a function of the application.
Is that possible? If yes, how can I accomplish such a thing?