The design pattern you are talking about it's only applied to bookmark widgets, and its done automatically.
This is, when your activity uses the intent filter ACTION_CREATE_SHORTCUT
, the launcher app adds a widget to its widget list and uses the android:icon
attribute of that activity to create that design. If you don't provide an android:icon
attribute in that activity, it will use the application icon
You can easily see the expected result without really implementing the functionality by adding:
<intent-filter>
<action android:name="android.intent.action.CREATE_SHORTCUT" />
</intent-filter>
to one of your activities.