public boolean isCacheDataFailure(String cacheFile){
  boolean failure=false;
  File data=getFileStreamPath(cacheFile);
  if (data.exists() && (System.currentTimeMillis() - data.lastModified()) > CACHE_TIME)   failure=true;
 else   if (!data.exists())   failure=true;
  return failure;
}

public boolean isCacheDataFailure ( String cacheFile ) { boolean failure = false ; File data = getFileStreamPath ( cacheFile ) ; if ( data . exists ( ) && ( System . currentTimeMillis ( ) - data . lastModified ( ) ) > CACHE_TIME ) failure = true ; else if ( ! data . exists ( ) ) failure = true ; return failure ; }
check the cache file is expired or not .
