public void resetPolicy(){
  mPreferences.putString(PREF_LAST_RESPONSE,Integer.toString(Policy.RETRY));
  setRetryUntil(DEFAULT_RETRY_UNTIL);
  setMaxRetries(DEFAULT_MAX_RETRIES);
  setRetryCount(Long.parseLong(DEFAULT_RETRY_COUNT));
  setValidityTimestamp(DEFAULT_VALIDITY_TIMESTAMP);
  mPreferences.commit();
}

public void resetPolicy ( ) { mPreferences . putString ( PREF_LAST_RESPONSE , Integer . toString ( Policy . RETRY ) ) ; setRetryUntil ( DEFAULT_RETRY_UNTIL ) ; setMaxRetries ( DEFAULT_MAX_RETRIES ) ; setRetryCount ( Long . parseLong ( DEFAULT_RETRY_COUNT ) ) ; setValidityTimestamp ( DEFAULT_VALIDITY_TIMESTAMP ) ; mPreferences . commit ( ) ; }
we call this to guarantee that we fetch a fresh policy from the server . this is to be used if the url is invalid .
