android - Homescreen Widget - process dies, widget left in limbo, need recovery strategy -


hope can offer me sage advance. assure appreciated.

i have home screen widget backed service , seeking guaranteed solution recover death of process hosting widget.

the widget seems die result of 'killing proc' or 'process has died'.

i might missing trick here , might blind blatantly obvious. if please point me in right direction.

i using action_screen_on intent check state of widget when screen turned on. works, not cater scenario process killed while screen still on.

this leaves widget in limbo, data depends upon function has been lost.

q. os guaranteed spawn new process if widget killed?

q. if so, there way have 'widget host' post action when spawns new process?

q. if not, there action can listen result in new process being spawned handle action?

as understand android.appwidget.action.appwidget_update action delivered on first initialisation of widget can't use trigger re-initialise widget.

i had hoped use alarmmanager implement heartbeat in order prompt widget , provide means recover had been killed.

this not seem work context lost along process.

any suggestions on strategy dealing such scenario.

thanks in advance advice.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -