@Override public int storedMB(){
  long bytes=0;
  final File[] files=cacheDirectory.listFiles();
  if (files == null)   return 0;
  for (  File file : files) {
    bytes+=file.length();
  }
  double megabytes=Math.ceil((double)bytes / 1024 / 1024);
  return (int)megabytes;
}

@ Override public int storedMB ( ) { long bytes = 0 ; final File [ ] files = cacheDirectory . listFiles ( ) ; if ( files == null ) return 0 ; for ( File file : files ) { bytes += file . length ( ) ; } double megabytes = Math . ceil ( ( double ) bytes / 1024 / 1024 ) ; return ( int ) megabytes ; }
retrieve records accumulated memory in megabyte
