ChargeTask.java
474 Bytes
package com.gimi.common.cinema.utils;
import android.text.TextUtils;
import java.io.File;
import java.util.concurrent.Callable;
//do what you want to do
class ChargeTask implements Callable<Boolean> {
String path;
public ChargeTask(String path) {
this.path = path;
}
@Override
public Boolean call() throws Exception {
if (TextUtils.isEmpty(path)) {
return false;
}
return new File(path).exists();
}
}