Tag Archives: Shortcut

How to add shortcut to Home screen in Android programmatically

I improved a little bit a solution that was found in StackOverflow. Now program saves in preferences whether a shortcut was already added and doesn’t add it in new launches of an app if user deleted it. This also saves a little bit time, since the code to add an existing shortcut doesn’t run anymore.

In Android Manifest: