Code example for IOException

Methods: getMessage

0
			image.compress(Bitmap.CompressFormat.PNG, 90, fos);
			fos.close();
		} catch (FileNotFoundException e) {
			Log.d(TAG, "File not found: " + e.getMessage());
		} catch (IOException e) {
			Log.d(TAG, "Error accessing file: " + e.getMessage());
		} 
	} 
 
	/** 
	 * Get the screen height. 
	 *  
	 * @param context 
	 * @return the screen height 
	 */ 
	@SuppressWarnings("deprecation") 
	@SuppressLint("NewApi") 
	public static int getScreenHeight(Activity context) {
 
		Display display = context.getWindowManager().getDefaultDisplay();
		if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {