Example usage for android.net.http HttpResponseCache delete

List of usage examples for android.net.http HttpResponseCache delete

Introduction

In this page you can find the example usage for android.net.http HttpResponseCache delete.

Prototype

public void delete() throws IOException 

Source Link

Document

Uninstalls the cache and deletes all of its stored contents.

Usage

From source file:com.morlins.artists.MainActivity.java

private void clearCache(HttpResponseCache cache) throws IOException {
    imageLoader.clearDiskCache();//from  w  w  w . j  a  v  a  2 s.  c  om
    imageLoader.clearMemoryCache();

    if (cache != null)
        cache.delete();
    installCache(300 * 1024);
}