Code example for IOException

Methods: d, getMessage

0
            return BitmapFactory.decodeFileDescriptor(file.getFD(), null,
                    options);
        } catch (IOException e) {
            Ln.d(e, "Could not get cached bitmap.");
            return null; 
        } finally { 
            if (file != null)
                try { 
                    file.close();
                } catch (IOException e) {
                    Ln.d(e, "Could not get cached bitmap.");
                } 
        } 
    } 
 
    /** 
     * Get size of image 
     * 
     * @param imagePath 
     * @return size 
     */