It just depends on how you set up a click handler for your widget. Normally,
you should be using a PendingIntent of some type, so that when it's fired,
Android can take it from there in the usual way, and that includes bringing
your application into memory and instantiating the component as necessary.

If this is not happening, then (and I'm reading my tarot deck here) it
*might* be because your code sets up the widget in multiple distinct steps:
one for the layout and the pending intent for clicking, then another to
update some kind of indicator. Is that the case? If so, make sure that each
widget update is complete and contains all of the above.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com
14.02.2011 2:31 пользователь "AndroidDevTime" <[email protected]>
написал:
> If you add a widget to the home screen that is part of an application
> that does not start on boot, and then you power on/off the device,
> and click on the widget does Android restart the widget's
> application? Right now my widget does nothing when clicked unless
> added when my application is already running. I would like to
> understand if android attempts to start the application that a widget
> is part of when you click on the widget and its application is not
> running?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to