【发布时间】:2015-04-13 00:03:36
【问题描述】:
在 Android 中更新地理围栏的最佳方式是什么?是不是先删除旧的一组地理围栏,然后像这样添加新更新的列表:
LocationServices.GeofencingApi.removeGeofences(
mGoogleApiClient,
getGeofencePendingIntent()
).setResultCallback(this);
LocationServices.GeofencingApi.addGeofences(
mGoogleApiClient,
getGeofencingRequest(),
getGeofencePendingIntent()
).setResultCallback(this); // Result processed in onResult().
或者我可以直接拨打addGeofences而不删除旧的并让新的替换旧的吗?
【问题讨论】:
标签: android geofencing android-geofence