Question

Some default widgets like "direct contact dial" are moveable to the favorites tray [1]. How can I create such a widget that is moveable to the favorites tray?

[1] http://developer.android.com/design/get-started/ui-overview.html

Best regards.

Was it helpful?

Solution

Those are shortcuts. You can have the ability to add shortcuts by handling the ACTION_CREATE_SHORTCUT intent in your AndroidManifest.xml. The Activity that handles this action should present something to allow the user to select which item in your application to create a shortcut to.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top