public void checkDeleteExistingFile(String filename){
  Log.i(TAG,">>>>>>>>>>>>>>>>>>checkDeleteExistingFile  = " + filename);
  if (filename != null) {
    File temp=new File(filename);
    if (temp != null && temp.exists()) {
      temp.delete();
    }
  }
}

public void checkDeleteExistingFile ( String filename ) { Log . i ( TAG , ">>>>>>>>>>>>>>>>>>checkDeleteExistingFile  = " + filename ) ; if ( filename != null ) { File temp = new File ( filename ) ; if ( temp != null && temp . exists ( ) ) { temp . delete ( ) ; } } }
check file and deletes it .
