コードスニペットは次のとおりです。
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());
}
では、次回以降、キャッシュからそれを取得するにはどうすればよいですか?