October 2018
Intermediate to advanced
464 pages
15h 17m
English
Once you set up the proper permission, this is a rather straightforward task. When the button is clicked, the code creates two intents. The first intent broadcasts to the OS that you want a shortcut created. The second intent is the intent that launches your app when the icon is pressed. One important consideration to keep in mind is that Home screens vary and may not support the INSTALL_SHORTCUT intent.