Stop the widget in the background, delete ()

Hey, Anyone knows how to kill a widget on delete (). When I delete the widget, it remains in the background, it never dies unless I exclude the entire application. My application consists of 4 activities, and the widget is not the main activity, but im uses a thread instead of a service for appwidget.

All I need to do is stop the widget from starting in the background when I remove it. I tried using system.exit (0). This did not work, everything he does clears all the data in the widgets. Or if I can kill the ondelete () application;

Any ideas? I really appreciated.

0
source share
1 answer

. , . , , , .

+2

Source: https://habr.com/ru/post/1532066/


All Articles