Java tutorial
//package com.java2s; import java.io.File; public class Main { private static boolean checkApkFile(String apkPath) { if (apkPath == null || apkPath.length() == 0) { return false; } File apkFile = new File(apkPath); return !(!apkFile.exists() || !apkFile.isFile()); } }