the cached file name is a base64 encoded version of the url . this means we do n't need to maintain a database of cached files . concode_field_sep File tmpDir concode_elem_sep Map<MediaItem,MediaPath> cache concode_field_sep boolean alreadyCached concode_elem_sep MediaPath getPath concode_elem_sep File getCachedFile concode_elem_sep MediaPath createPath concode_elem_sep OutputStream getCachedOutputStream concode_elem_sep boolean checkResourceAvailable concode_elem_sep MediaPath createCachedMedia concode_elem_sep MediaPath createCachedMedia
String function ( String arg0 ) { return Base64 . encodeToString ( arg0 . getBytes ( ) , false ) ; }