Bitmap bm = null; File file = new File(path); FileInputStream fs = null; try { fs = new FileInputStream(file); } catch (FileNotFoundException e) { GuiUtils.noAlertError(TAG, e); } try { if (fs != null) bm = BitmapFactory.decodeFileDescriptor(fs.getFD(), null, bfOptions); } catch (IOException e) { GuiUtils.error(TAG, e); } finally { if (fs != null) { try { fs.close(); } catch (IOException e) { GuiUtils.noAlertError(TAG, e); } }