I'm tried to implement following if condition to skip the downloading process if the file found. But the if condition doesn't seem to be working and without if condition this works fine. can someone please help to solve this. I think, I used the if condition improperly.
File file = new File( Environment.getExternalStorageDirectory().getAbsolutePath() + "/Android/data/com.sample.project/files/images/");
if(file.getPath().equals(false)){
String url = "http://www.sample.com/example.zip";
new DownloadTask().execute( url );
}