What's The Directory Of External Storage On Nexus LG
Solution 1:
Nexus devices don't have an SD slot. They pretend that somewhere on the internal drive is an SD card. But the exact path returned by the function does exist on your device, otherwise you couldn't make a file to it.
By the way, do not depend on that returned value being the same across devices. It isn't.
Solution 2:
Yea agree with gabe and also this is just a suggestion but you could use if and else alongside mkdirs to check if the directory or folder exists and if it doesnt already exist it will create a new folder in the specified location.
Solution 3:
As Nexus 4 does not have an external SD, (same thing for Nexus 5, on which I am working now), its OS emulates an SD temporarily. Thus, calling Environment.getExternalStorageDirectory()
returns the following path: tempDirPath:/storage/emulated/0/
, but it can be later accessed by you at /storage/emulated/legacy
.
Try accessing it via adb shell
, this legacy
folder will store the content of the emulated external SD.
Post a Comment for "What's The Directory Of External Storage On Nexus LG"