picview/src/com/google/android/apps/picview/request/AsyncRequestTask.java
private void checkForNewerVersionAsync(final String oldData) {
    AsyncRequestTask task = new AsyncRequestTask(fetcher, url, true, null,
        context, new RequestCallback() {
          @Override
          public void success(String data) {
            if (!data.equals(oldData)) {
              Log.d(TAG, "Data in DB has changed, notifying "
                  + "callback a second time..");
              callback.success(data);
            }
          }

          @Override
          public void error(String message) {
            // Nothing we can do.
          }
        });
    task.execute();
  }
/**
   * Fire off another {@link AsyncRequestTask} that forces the fetcher to fetch
   * the contents from the web and skip the caches. This way we can check,
   * whether there is updated data available. If there is, then the callback we
   * be called once again with the updated data.
   * 
   * @param oldData
   *          the old data, so we can compare the new data. Only if new and old
   *          differ, we call the callback once again
   */
Fire off another  AsyncRequestTask that forces the fetcher to fetch
the contents from the web and skip the caches. This way we can check,
whether there is updated data available. If there is, then the callback we
be called once again with the updated data.

@param oldData
the old data, so we can compare the new data. Only if new and old
differ, we call the callback once again
Fire off another AsyncRequestTask that forces the fetcher to fetch the contents from the web and skip the caches . This way we can check whether there is updated data available . If there is then the callback we be called once again with the updated data . @param oldData the old data so we can compare the new data . Only if new and old differ we call the callback once again
private void checkForNewerVersionAsync(final String oldData) {
    AsyncRequestTask task = new AsyncRequestTask(fetcher, url, true, null,
        context, new RequestCallback() {
          @Override
          public void success(String data) {
            if (!data.equals(oldData)) {
              Log.d(TAG, "Data in DB has changed, notifying "
                  + "callback a second time..");
              callback.success(data);
            }
          }
          @Override
          public void error(String message) {
          }
        });
    task.execute();
  }
private void checkForNewerVersionAsync ( final String oldData ) { AsyncRequestTask task = new AsyncRequestTask ( fetcher , url , true , null , context , new RequestCallback ( ) { @ Override public void success ( String data ) { if ( ! data . equals ( oldData ) ) { Log . d ( TAG , "Data in DB has changed, notifying " + "callback a second time.." ) ; callback . success ( data ) ; } } @ Override public void error ( String message ) { } } ) ; task . execute ( ) ; }
Fire off another {@link AsyncRequestTask} that forces the fetcher to fetch
 the contents from the web and skip the caches.
Fire off another { @link AsyncRequestTask } that forces the fetcher to fetch the contents from the web and skip the caches .
// Nothing we can do.