Closed GoogleCodeExporter closed 9 years ago
Key thing for above repro: On the device, start the "Dev Tools" app, then
select "Development Settings", then check "Immediately Destroy Activities".
I'm still not sure how it is related, but the widget should still work in that
case (as Android will still shut down the activities eventually, just later)
Original comment by skippy.hammond@gmail.com
on 31 Dec 2010 at 6:07
The problem seems to be related to the main service updating the views in
response to state notifications - removing the manager.updateAppWidget() call
from the service made things work as expected (although obviously didn't allow
the widget to have the correct drawable).
I fixed this by merging the widget's receiver into the widget itself, primarily
to get a good 'context' to work with. The widget itself handles our brandcast
and updates itself - MainService knows nothing about app widgets. Finally, I
added a way for the widget to request the service broadcast its *current*
state, so that when a new widget is added it automatically gets the correct
initial state drawn.
Original comment by skippy.hammond@gmail.com
on 1 Jan 2011 at 3:45
Attachments:
Original comment by Florent....@gmail.com
on 1 Jan 2011 at 9:57
Original comment by fschm...@gmail.com
on 25 Aug 2011 at 7:51
Original issue reported on code.google.com by
skippy.hammond@gmail.com
on 31 Dec 2010 at 5:48