@@ -0,0 +1,528 @@
+package baidu.com.commontools.utils;%0A%0Aimport android.graphics.BitmapFactory;%0A%0Apublic class BitmapUtils %7B%0A%0A    /**%0A     * Check if the photo file is corrupted%0A     * @param filePath the photo file path%0A     */%0A    public static boolean isImgCorrupted(String filePath) %7B%0A        BitmapFactory.Options options = new BitmapFactory.Options();%0A        options.inJustDecodeBounds = true;%0A%0A        BitmapFactory.decodeFile(filePath, options);%0A        return options.mCancel %7C%7C options.outWidth == -1 %7C%7C options.outHeight == -1;%0A    %7D%0A%7D%0A

change : add BitmapUtils.