开发者

how to get a single gps fix in android?

I have a program that requires a single GPS fix when a service is started. This is needed to tell an on location change when the last location is. How to get 1 开发者_如何学运维single GPS fix in an android service?


Ive found a way! all i did was defined a boolean StartUp then made this true in oncreate then if (StartUp = true){ DistanceMoved=1000000f; StartUp=false;} this will work if your location is done with distance moved.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜