code: private void setAllowedDate(final long date) {
          mAllowedDate = date;
          if (mSharedPreferences == null) {
              mSharedPreferences = mContext.getSharedPreferences(
                      PREFERENCES_GEOCODER, Context.MODE_PRIVATE);
          }
          final Editor e = mSharedPreferences.edit();
          e.putLong(KEY_ALLOW, date);
          e.apply();
      }
docs: Sets date after which next geocoding query is allowed
  
  @param date the date after which next geocoding query is allowed