有人可以解释为什么以下两行输出不同的日志值吗?
Log.v(TAG, "getenv(name) = [" + System.getenv("SECONDARY_STORAGE") + "]");
Log.v(TAG, "getenv().get(name) = [" + System.getenv().get("SECONDARY_STORAGE") + "]");
我看到第一个:
getenv(name) = [/storage/extSdCard]
我看到第二个:
getenv().get(name) = [/storage/extSdCard:/storage/UsbDriveA:/storage/UsbDriveB:/storage/UsbDriveC:/storage/UsbDriveD:/storage/UsbDriveE:/storage/UsbDriveF]
没什么大不了的。我只是好奇。