非 GPS 设备上的 J2ME 位置 API (JSR 179)
Java ME Location API 表示它支持:
- 基于移动网络的定位。
- GPS
- 短程信标
很多手机都支持此 API (JSR179)。但是,有些手机没有内置GPS模块,是否仍然可以使用此API来获取手机的当前位置?
The Java ME Location API says it supports:
- Mobile Network based positioning.
- GPS
- Short Range Beacons
Quite a number of phones support this API (JSR179). However, some phones don't have an inbuilt GPS module, is it still possible to use this API to obtain the phone's current location?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
安全设置将控制您是否可以访问此内容,服务提供商也可能会收取费用。
根据我对 J2ME 的非常有限的经验,您可以将手机设置为不允许应用程序访问私人数据(例如位置)并对服务(例如位置)进行收费 - 您还可以将其设置为向用户弹出请求授权它。
J2ME 设计得非常好,可以优雅地回退到可用的内容并隐藏许多细节。
The security settings will control if you can access this, the service provider may also make a charge.
From my very limited experience of J2ME, you can set the phone to not allow an app access to private data (such as location) and to charged for services (such as location) - you can also set it to popup a request for the user to authorize it.
J2ME is pretty well designed to gracefully fall back to whats available and hide a lot of the details.
是的,某些无 GPS 的 S60(例如 N70)在与通过蓝牙连接的外部 GPS 设备一起使用时,通过此 API 提供位置。其他人可能会使用 CellID 为您提供大致位置。
Yes, some GPSless S60s (e.g. N70) give location through this API when used with an external GPS device attached via Bluetooth. Others may possibly give you approximate location using CellID.