Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public static String readAssets2String(final String assetsFilePath, final String
return "";
}
}
} catch (IOException e) {
} catch (Exception e) {
e.printStackTrace();
return "";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ private SDCardUtils() {
* @return {@code true}: enabled<br>{@code false}: disabled
*/
public static boolean isSDCardEnableByEnvironment() {
return Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState());
try {
return Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState());
}catch (Exception e){
e.printStackTrace();
return false;
}
}

/**
Expand Down