5,606,530 Members 33,594 Now Online
XDA Developers Android and Mobile Development Forum

How to revive Zombie Wigdets android

Tip us?
 
manishjg
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: Jun 2013
Unhappy How to revive Zombie Wigdets android

I have a widget which is being serviced by a Service in my code. Now when the application is forced stopped the service also stops.

So now there is no one to update the widget and widget is acting like a zombie.

Now If I start the application activity the widget cannot be revived as I do not have the Id of the widget.

What is the best way to handle such situations?
 
EatHeat
Old
#2  
EatHeat's Avatar
Recognized Developer
Thanks Meter 1317
Posts: 902
Join Date: Jan 2013
Location: Calcutta
Make another background service to keep the service running. Better to put it as a persistent notification though I'm not sure why you would want to have your app force closed.
[3.0+]Crius.
Customize your clock.


[2.2+]SnowBowl HD.
Enjoy the vacations!


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes