开发者

How to restrict to a single instance of android appwidget

开发者 https://www.devze.com 2023-03-10 17:42 出处:网络
How can I restrict users to creating only a single instance of my App开发者_Python百科Widget?In the configuration activity (which gets started after the widget was added) you can check if the user alr

How can I restrict users to creating only a single instance of my App开发者_Python百科Widget?


In the configuration activity (which gets started after the widget was added) you can check if the user already added a widget (save a value to the preferences). If so, you can just cancel the config activity (maybe showing an explanation message). Don't forget to delete the saved value when the one widget is removed.

0

精彩评论

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