开发者

Hiding android widget

开发者 https://www.devze.com 2023-03-23 21:10 出处:网络
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

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

精彩评论

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