Code example for FileNotFoundException

Methods: printStackTrace

0
		Bitmap bitmap = null;
		try { 
			fis = context.openFileInput(fileName);
			bitmap = BitmapFactory.decodeStream(fis);
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (OutOfMemoryError e) {
			e.printStackTrace();
		}finally{ 
			try { 
				fis.close();
			} catch (Exception e) {}
		} 
		return bitmap;
	} 
	/** 
	 * 获取bitmap 
	 * @param filePath 
	 * @return 
	 */ 
Experience pair programming with AI  Get Codota for Java