在后台运行,在删除停止部件() [英] stop the widget from running in the background, on delete()
问题描述
嘿,
任何人都知道如何部件杀删除()。当我删除后台运行其住宿的小部件,它永远不会死,除非我取消抵押品赎回权的整个应用程序。
我的应用程序包括4个活动,并采用螺纹,而不是服务为appwidget小部件不是主要活动和IM。
Hey, Anyone knows how to kill widget on delete(). When i delete the widget its stays running in the background,it never dies unless i foreclose the whole app. My app consists of 4 activities and the widget is not the main activity and im using thread instead of service for the appwidget.
所有我需要的是在后台运行,当我删除它停止部件。
我已经使用system.exit试过(0)。它没有工作,它的作用是什么明确的窗口小部件的所有数据。
或者,如果我可以杀死应用ondelete();
All what i need is stop the widget from running in the background when i delete it. i've tried using system.exit(0). It didn't work, all what it does is clear all the data in the widget. Or if i can kill the app ondelete();
任何想法?我真的AP preciated。
Any ideas? I'd really appreciated.
推荐答案
这是正常的行为。这个过程的情况下,保持周围的应用程序需要再次运行。这节省了工作,因为它可能只被再利用在下次插件需要更新或用户启动该应用
That is the normal behavior. The process is kept around in case the app needs to run again. This saves work, since it can probably just be re-used the next time the widget needs to update or the user launches the app.
这篇关于在后台运行,在删除停止部件()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!