Saturday, 24 January 2015

What do you understand by Widget Configurator ?

* A widget definition optionally includes a specification of an activity called a widget configurator activity.

* When you choose a widget from the home page widget pick list to create the widget instance, Android invokes the corresponding widget configuration activity.

* This activity is something you need to write, which is then responsible for configuring the widget instance.

For Example:

- In the case of our Birthday Widget, this configuration activity will prompt you for the name of the person and the upcoming birth date.

- It is the responsibility of the configurator to save this information in a persistent place so that when an update is called on the widget provider, the widget provider will be able to locate this information and update the view with proper values that are set by the configurator.

No comments:

Post a Comment