开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜