最初,我向 LocationClient 添加了 5 个地理围栏。
一段时间后,我需要添加新的地理围栏,比如 3。
我该怎么做才能激活所有 8 个地理围栏。
我是否应该删除最初的 5 个地理围栏并一次添加所有 8 个。或者我应该添加 3 个新的地理围栏,如下所示。
Intent geofenceIntent = new Intent(this, GeofenceIntentService.class);
PendingIntent pIntent = PendingIntent.getService(this,
0,
geofenceIntent,
PendingIntent.FLAG_UPDATE_CURRENT);
locationClient.addGeofences(geofences, pIntent, LocationIntentService.this);