如何禁用窗口小部件updatePeriodMillis? [英] How to disable Widget updatePeriodMillis?

查看:201
本文介绍了如何禁用窗口小部件updatePeriodMillis?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找出如何我可以禁用我的小部件的更新周期?我不需要这个特定的功能。当添加就是这样,我只是罚款与小部件调用的OnUpdate ...

I'm trying to figure out how I can disable the update period on my widgets? I don't need this particular feature. I'm just fine with the widget calling onUpdate when added that's it...

推荐答案

只是不包含在你的XML,它不会自动更新,或将其设置为0。

Just don't include it in your xml and it won't autoupdate, or set it to 0.

这篇关于如何禁用窗口小部件updatePeriodMillis?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆