* @param message The exception message
* @throws AndroidConfigurationException Thrown if file is null or invalid
*/
public static void isReadableDirectory(final File file, String message) throws AndroidConfigurationException {
if (file == null) {
throw new AndroidConfigurationException(message);
}
if (!file.exists() || !file.isDirectory() || !file.canRead() || !file.canExecute()) {
throw new AndroidConfigurationException(message);
}
}