double function ( ) { StatFs loc0 = new StatFs ( Environment . getExternalStorageDirectory ( ) . getPath ( ) ) ; long loc1 = loc0 . getAvailableBlocks ( ) ; long loc2 = loc0 . getBlockCount ( ) ; return ( double ) loc1 / ( double ) loc2 * 100 ; }
returns free space in percent . concode_field_sep double MIN_FREE_SPACE concode_elem_sep String CACHE_DIRECTORY concode_field_sep void purgeCache concode_elem_sep String assertSdCard concode_elem_sep long freeSpace concode_elem_sep File getCacheDirectory concode_elem_sep File ensureCache concode_elem_sep long totalSpace concode_elem_sep Bitmap addCoverToCache concode_elem_sep File getCacheFile concode_elem_sep int calculateSampleSize