public void clear(){
  if (USE_MEMORY_CACHE) {
synchronized (mMemoryCache) {
      mMemoryCache.evictAll();
    }
  }
synchronized (mEntries) {
    mEntries.clear();
  }
  File[] cacheFiles=mCacheDir.listFiles();
  for (  File file : cacheFiles) {
    if (!file.delete()) {
      Log.e(TAG,"Cannot delete " + file.getPath());
    }
  }
}

public void clear ( ) { if ( USE_MEMORY_CACHE ) { synchronized ( mMemoryCache ) { mMemoryCache . evictAll ( ) ; } } synchronized ( mEntries ) { mEntries . clear ( ) ; } File [ ] cacheFiles = mCacheDir . listFiles ( ) ; for ( File file : cacheFiles ) { if ( ! file . delete ( ) ) { Log . e ( TAG , "Cannot delete " + file . getPath ( ) ) ; } } }
clears the cache ( both memory and disk )
