这是代码段:
private static Drawable getDrawableFromUrl(final String url) throws IOException, MalformedURLException {
URL uurl = new URL(url);
URLConnection connection = uurl.openConnection();
connection.setUseCaches(true); //share cache with browser
Object response = connection.getContent();
return Drawable.createFromStream(((InputStream)response), uurl.getFile());
}
那么现在如何在下次和以后的时间从缓存中检索它?