Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/217.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Geofence实现通过Cell ID获取Alart(网络提供商)_Android_Location_Android Geofence_Cellid - Fatal编程技术网

Android Geofence实现通过Cell ID获取Alart(网络提供商)

Android Geofence实现通过Cell ID获取Alart(网络提供商),android,location,android-geofence,cellid,Android,Location,Android Geofence,Cellid,我正在使用来自的Geofence代码 如果我启用GPS并使用以下代码请求GPS,则工作正常 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000*60 , 0, new MyLocationListener()); 我应该怎么做才能从Cell Id获得Geofence alart 当我使用 locationManager.requestLocationUpdates(LocationManager.N

我正在使用来自的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,但我得到的实际位置不在fence中

我已经设置了半径为100米的土工栅栏

我们需要激活网络才能使这个程序工作吗

我们需要登录谷歌游戏吗

我错过了什么