开发者

Any idea to detect the destination coordinate by specify time and distance to receive the location

EDIT:

I want to detect the destination location contrast with my current 开发者_运维问答location to send notification when I arrive at destination point. But in the requestLocationUpdates() I set it to receive location with 15 mins, 1 km like this

MINIMUM_TIME_BETWEEN_UPDATES = 1000*60*15;
MINIMUM_DISTANCE_CHANGE_FOR_UPDATES = 1000;
    myManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
                    MINIMUM_TIME_BETWEEN_UPDATES,
                    MINIMUM_DISTANCE_CHANGE_FOR_UPDATES, this);

During the travel, it may be pass destination point and miss to notify that. Then I need the idea to handle this problem. Any idea or suggestion to solve this problem ? All your help I really appreciate it.


Any idea or suggestion to solve this problem

Use addProximityAlert(), not requestLocationUpdates(), to find out when you are getting near a particular destination location.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜