Android Geofence实施通过Cell-ID获取Alart(NetWork Provider)

时间:2014-05-21 08:33:16

标签: android location android-geofence cellid

我正在使用http://developer.android.com/training/location/geofencing.html

中的Geofence代码

工作正常如果我启用GPS并使用以下代码来请求GPS

locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000*60 , 0, new MyLocationListener());

如何从Cell-Id获取Geofence alart

当我使用

locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 1000*60 , 0, new MyLocationListener());

它显示在Geofence中输入,但我得到的实际位置不在栅栏中。

我已将地理围栏半径设置为100米。

我们是否需要net激活才能使该程序正常工作?

我们是否需要在Google Play中登录?

我错过了什么?

0 个答案:

没有答案