This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private TreeSet<String> getMountedSdCards() { | |
String externalMain = Environment.getExternalStorageDirectory().getAbsolutePath(); | |
TreeSet<String> mountPaths = new TreeSet<String>(); | |
try { | |
Scanner scanner = new Scanner(new File("/proc/mounts")); | |
while (scanner.hasNext()) { | |
String line = scanner.nextLine(); | |
if (line.startsWith("/dev/block/vold/")) { | |
String[] lineElements = line.split(" "); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl ifconfig.me |