开发者

Programmatically delete a widget on home screen by click listener in android

开发者 https://www.devze.com 2023-01-21 21:51 出处:网络
I\'ve a widget which I would like to delete programmatically if开发者_高级运维 the user gives the command by clicking on some button or so. But as per my knowledge the app programme and the widget pro

I've a widget which I would like to delete programmatically if开发者_高级运维 the user gives the command by clicking on some button or so. But as per my knowledge the app programme and the widget programme will be running in different processes. So how is it possible to get the control of another process remote view and delete the same clearing all the db contents related to the widget?


If you are developing both app and widget then you can send intent to the app and remove widget when intent is received.

0

精彩评论

暂无评论...
验证码 换一张
取 消