开发者

Hiding android widget

I have created a few home screen widgets for my Android application. I would like to disable or enable some of these widgets from being added to the home screen based on some of the user's settings in m开发者_StackOverflow社区y database.

Is it possible to dynamically disable/enable the user from adding certain widgets from my application?


Is it possible to dynamically disable/enable the user from adding certain widgets from my application?

If you disable/enable the <receiver> component via PackageManager, that should cause those app widgets to be unavailable from the menu... but it probably also screws up any outstanding instances of those app widgets.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜