开发者

How do MyLocationOverlay.getMyLocation() and getLastFix() differ?

Looking at MyLocationOverlay - does anyone know what the difference is between:

public GeoPoint getMyLocation();
public android.location.Location getLastFix();

MyLocationOverlay

(besides the return type)? Does the getMyLocation() method return a value only after a location has been found, an开发者_如何学运维d the getLastFix() will return a cached last fix, possibly from a different session?


According to the docs both relate to most-recently-set user location, so I'd say that both returns last cached location, and getMyLocation just provides type conversion from Location to GeoPoint.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜