N95 上的 J2ME 位置 API - 需要打开诺基亚地图来预热 GPS?

发布于 2024-07-16 01:02:20 字数 214 浏览 1 评论 0原文

当我通过打开诺基亚地图或谷歌地图来预热 GPS 时,位置 API 似乎只对我有用。

Google 地图应用程序有一个状态气球,显示卫星数量并让用户知道连接何时处于活动状态,但是我在 J2ME Location API 文档中没有找到任何指定如何执行此操作的内容。

这些应用程序似乎正在调用一些启动 GPS 的函数。 如果不打开它们,位置 API 将在我的应用程序中超时。

The location API only seems to work for me when I warm up the GPS by opening Nokia Maps or Google Maps.

The Google Maps app has a status balloon which shows the number of satellites and lets the user know when the connection is active, however I have not found anything in the J2ME Location API docs which specifies how to do this.

It seems like these apps are calling some function which kick-starts the GPS. Without opening them the Location API will just time out in my app.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

二货你真萌 2024-07-23 01:02:20

使用位置监听器...:)

Use LocationListener ... :)

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