Actually a small addition. It's not only your service that's "in
jeopardy".
I have a similar problem and find that the Widget is being killed by
the OS almost immediately out of the gate. From far looks like what
you describe.
There's a way to start Services in the foreground (through
startForeground()), but I haven't yet figured out how to protect a
Widget in a similar fashion.


On May 2, 7:44 pm, JP <[email protected]> wrote:
> What you should look for:
> If you use a background service, check Logcat for something like
> "Process <YourWidgetService> (pid <...>) has died" to see if the OS is
> pulling the plug on your widget's background service.
>
> On May 2, 3:40 pm, billconan <[email protected]> wrote:
>
>
>
> > hello guys,
>
> > I'm developing a widget based on this tutorial.
> >  http://android-developers.blogspot.com/2009/04/introducing-home-scree...
>
> > the same code works fine on my HTC eris. but on the verizon droid, the
> > widget doesn't refresh. the widget updates the time i add it on the
> > home screen. but after that it freezed.
>
> > the droid runs a 2.1 os while the eris runs 1.5. can this be the
> > problem?
>
> > I'm updating an image view with this code:
>
> >      updateViews.setImageViewResource(R.id.xxx,.xxxx);
>
> > is there anybody having the same issue? do you know the solution?
>
> > --
> > 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 
> > athttp://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 
> athttp://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