且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android的位置每30秒更新

更新时间:2022-12-29 22:40:02

恕我直言,30秒快速获得听众,获得更新和关闭它背下来。唯一的例外可能是,如果你愿意接受一个非常大的数字的准确性。如果你真的需要它每隔30秒,离开它活跃,但电池受到影响。

IMHO, 30 seconds is to fast to get the listener, get an update, and shut it back down. The only exception to that may be if you are willing to accept a very large accuracy number. If you really need it every 30 seconds, leave it active, but the battery suffers.