src/jpm/dg/Util.java
/**
	 * An SD card test.
	 * 
	 * @param context
	 * @return True if and only if a valid SD exists to be written on.
	 */
An SD card test.

@param context
@return True if and only if a valid SD exists to be written on.
An SD card test . @param context @return True if and only if a valid SD exists to be written on .
public static boolean isStorageAvailable(Context context) {
		Boolean isSDPresent = android.os.Environment.getExternalStorageState()
				.equals(android.os.Environment.MEDIA_MOUNTED);
		if (!isSDPresent) {
			showToast(context, "No available SD card can be found");
		}
		return isSDPresent;
	}
public static boolean isStorageAvailable ( Context context ) { Boolean isSDPresent = android . os . Environment . getExternalStorageState ( ) . equals ( android . os . Environment . MEDIA_MOUNTED ) ; if ( ! isSDPresent ) { showToast ( context , "No available SD card can be found" ) ; } return isSDPresent ; }
An SD card test.
An SD card test .