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:

3 thoughts on “How to add shortcut to Home screen in Android programmatically”

  1. I see you share interesting things here, you can earn some
    additional money, your website has huge potential, for the monetizing method, just
    search in google – K2 advices how to monetize a website

  2. I read a lot of interesting content here. Probably you spend
    a lot of time writing, i know how to save you a lot of work,
    there is an online tool that creates unique, google friendly
    articles in minutes, just search in google – laranitas free content source

  3. Does this work the exact same way “Add To Homescreen” works in Chrome for Progressive Web Apps?

Leave a Reply

Your email address will not be published. Required fields are marked *