Tuesday, February 18, 2014

Andrews has an SD card when how to obtain U disk name


When you insert an external SD card, I want to display the name and U-disk space, but can only get into the space, I do not know the name of access to the SD card (or label) from what interface, Will Andrews has such Interface do? Or drive section is to provide such an interface to get the name of U disk?
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Andrews is a linux system, unlike the windows has a drive letter, it will generate a directory to associate U disk, access methods are as follows:
String dir = Environment.getExternalStorageDirectory () toString ().;
Reply:
cited a floor tcmakebest reply:
Andrews is a linux system, unlike the windows has a drive letter, it will generate a directory to associate U disk, access methods are as follows :
String dir = Environment.getExternalStorageDirectory () toString ();.


Yes, but do not know the SD card driver is not there other interfaces can be obtained directly, so, I can distinguish the type of access to the external memory.
Reply:
Looks like someone abroad encountered the same problem, but still not resolved.

No comments:

Post a Comment