How to add shortcut to Home screen in android programmatically [duplicate]
This question already has an answer here: Android create shortcuts on the home screen 9 answers This issue has arisen when I was developing an android application. I thought of sharing the knowledge I gathered during my development. Chanaka udaya Android provide us an intent class com.android.launcher.action.INSTALL_SHORTCUT which can be used to add shortcuts to home screen. In following code snippet we create a shortcut of activity MainActivity with the name HelloWorldShortcut. First we need to add permission INSTALL_SHORTCUT to android manifest xml. <uses-permission android:name="com.android