开发者

If I do not define any time and distance in requestLocationUpdates(), what will happen? [closed]

开发者 https://www.devze.com 2023-03-05 15:14 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_C百科 Closed 11 years ago.

If I cant pass minimum time and distance in this method, what will happen? When will this method be called?

locationManager.requestLocationUpdates(provider,0, 0,locationListener);


by setting minTime and minDistance to 0 you will get a dead phone.

by the docs:

To obtain notifications as frequently as possible, set both parameters to 0.

you will just get very very rapid responses and also the battery drain on a device will be horrendous.

0

精彩评论

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