开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜