这是代码片段:
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());
}
那么现在我如何在下次和后续时间从缓存中检索它?