如何从设备 GPS 系统快速获取当前纬度
我的应用程序基于根据用户当前位置的事件。当我启动我的应用程序时,启动屏幕出现 3 或 4 秒..然后在启动屏幕期间我获取设备的当前位置,并根据当前位置我显示事件列表..
但第一次我无法获取当前位置在启动屏幕
期间。一段时间后,我成功获取其他屏幕的当前位置。
BB 设备有 GPS 系统,当我们按下设备 Menu
键时,它会刷新并获取我们当前的位置。它显示在那里。那么有什么方法可以从显示纬度和经度的 GPS 系统(设备系统)快速获取当前位置。
提前致谢 !!!
My application is based on Event according to user current location. when i start my application Splash screen comes for 3 or 4 second .. then during splash screen i m getting current location of device and according to this current location i am displaying Event list..
But at the first time i m not able to get current location during the splash screen
.after some time i am getting current location successfully for other screen.
In BB device there is GPS system and when we press device Menu
key it will be refresh and get our current location. and it is display there. so is there any way to get quick current location from this GPS system (device system) which is displaying Latitude
and Longitude
there.
Thanks in Advance !!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以立即获得最后知道的位置。但谁知道用户现在有多远。
蜂窝塔方法也会很快。但它也并不像您预期的那样准确。
我记得设备需要 30-80 秒才能获得准确位置(如果可能的话)。
因此,我建议您使用精度较低的可用位置,并在获得更准确的位置时更新列表。
You can get last know location which will be immediately. But who know how far user is now.
Cell tower method will be also quick. But it also is not accurate as you probably expected.
As I remember there is 30-80 secs while device gets accurate location (if it's possible).
So I would suggest you to use available location with less accuracy and update list as you get more accurate one.