I notice that some apps on the Android Market automatically create shortcuts on the desktop after downloading and installing onto your device, while some don’t. How would I go about implementing this behavior?
I notice that some apps on the Android Market automatically create shortcuts on the
Share
Send an intent to the Launcher. Broadcast a INSTALL_SHORTCUT intent with a EXTRA_SHORTCUT_NAME and EXTRA_SHORTCUT_INTENT. The extra EXTRA_SHORTCUT_DUPLICATE can be used to help manage duplicate shortcuts being made. The details can be found in the Launcher2 project in the AOSP repository.
Please be careful with this, some users may not appreciate having a shortcut created without permission.
Here is some pseudo code:
There is some more information in the Intent class as well as an alternate Intent action.