Widget not working after Force quit App

僤鯓⒐⒋嵵緔 提交于 2019-12-24 03:50:41

问题


I have a widget that works well in all cases except when the app is forced quit. When that happens, any touch or button press on the widget is not working. However, when the app is launched again, the widget works again. Even if I kill the app (by swiping it), the widget still works. My systematic control over the widget is through remoteViews. Do I need to something to handle this case? My guess is that it has to do with onDestroy().

Thanks!

Note: it is similar but not a duplicate of Widget fails to launch properly after app has been force-stopped

来源:https://stackoverflow.com/questions/33016470/widget-not-working-after-force-quit-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!