如何从设备 GPS 系统快速获取当前纬度

发布于 2024-12-19 17:20:22 字数 287 浏览 0 评论 0原文

我的应用程序基于根据用户当前位置的事件。当我启动我的应用程序时,启动屏幕出现 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

凤舞天涯 2024-12-26 17:20:22

您可以立即获得最后知道的位置。但谁知道用户现在有多远。
蜂窝塔方法也会很快。但它也并不像您预期​​的那样准确。
我记得设备需要 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文