Code example for NetworkInfo

Methods: getType, toString

0
     */ 
    public void enableResponseCache(Context context, int initialCapacity, long expirationInMinutes,
            int maxConcurrentThreads, int diskCacheStorageDevice) {
        enableResponseCache(initialCapacity, expirationInMinutes, maxConcurrentThreads);
        responseCache.enableDiskCache(context, diskCacheStorageDevice);
    } 
 
    /** 
     * Disables caching of HTTP responses. You may also choose to wipe any files that may have been 
     * written to disk. 
     */ 
    public void disableResponseCache(boolean wipe) {
        if (responseCache != null && wipe) {
            responseCache.clear();
        } 
        responseCache = null;
    } 
 
    /** 
     * @return the response cache, if enabled, otherwise null 
     */