Android的网络服务提供者,互联网需要的? [英] Android Network provider, internet needed?

查看:98
本文介绍了Android的网络服务提供者,互联网需要的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的位置更新的网络供应商。我需要有我的细胞互联网?

下面是我的code

  LocationMngr =(的LocationManager)getSystemService(Context.LOCATION_SERVICE);
LocationMngr.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,inteval,0,这一点);


解决方案

没有,对GPS传感器是独立于互联网连接,所以你不必担心互联网连接,如果你只是想通过得到您的位置全球定位系统。我有有GPS传感器的Nexus 10,当我漫游没有互联网connectivitiy它工作得很好。

I'm using network provider for location updates. Do I need to to have internet on my cell?

Here is my code

LocationMngr = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
LocationMngr.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, inteval, 0, this);

解决方案

No, the GPS sensors are independent of connections to the internet, so you don't need to worry about internet connectivity if you just want to get your location via GPS. I have a Nexus 10 which has a GPS sensor, and it works just fine when I'm roaming without internet connectivitiy.

这篇关于Android的网络服务提供者,互联网需要的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆