我正在使用网络提供商更新位置信息。我的手机需要联网吗?
这是我的代码:
LocationMngr = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
LocationMngr.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, inteval, 0, this);
我正在使用网络提供商更新位置信息。我的手机需要联网吗?
这是我的代码:
LocationMngr = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
LocationMngr.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, inteval, 0, this);
我看到别人的答案后感到困惑。于是我进行了大量搜索,并对此有了一些想法。在搜索过程中,我学习了新概念 A-GPS。我想与您分享这些知识。
共有 三个
位置提供者。
1. GPS Provider
2. Network Provider (AGPS, CellID, WiFi MACID)
3. Passive Provider.
Assisted GPS
(AGPS)。不需要互联网连接,但在某些ROM中可能会出现连接错误。在GPS模块中,您不需要互联网,但有些方式可以使用WiFi以获得更好的性能,例如Google导航服务。