3
在Android中更新地理圍欄的最佳方式是什麼?它是先刪除舊的一套地理圍欄,然後加入新的更新列表如下:Android更新地理柵欄
LocationServices.GeofencingApi.removeGeofences(
mGoogleApiClient,
getGeofencePendingIntent()
).setResultCallback(this);
LocationServices.GeofencingApi.addGeofences(
mGoogleApiClient,
getGeofencingRequest(),
getGeofencePendingIntent()
).setResultCallback(this); // Result processed in onResult().
或者我能不能直接調用addGeofences
無需取出舊的,並有新的取代舊的?