Saturday, March 8, 2014

Android SD card path to get the real machine is / storage/emulated/0 /! ! ! ! ! ! ! ! ! !


As stated, one hour before the test to get the correct path or, now get is / storage/emulated/0 /, NEXUS4 and GALAXY S2 are not correct, there is a resurgence to get right. What permissions are added as well.
Before also, how suddenly fall ill of it?
We have encountered this situation?<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Different mobile phone manufacturers is indeed possible you can get different paths through the Environment Methods
Reply:
This is a reference path, do not worry.
Open your ddms File Explorer
You can see a list of info out
in your mnt / sdcard backWhich is similar to the write / storage/emulated/0 / this thing
Then you can find the storage folder in your File Explorer, there will be emulated below, and then there will be 0
belowIn fact, all the same
Reply:
reference to the second floor wlcw16 reply:
This is a reference path, do not worry.
Open your ddms File Explorer
You can see a list of info out
in your mnt / sdcard backWhich is similar to the write / storage/emulated/0 / this thing
Then you can find the storage folder in your File Explorer, there will be emulated below, and then there will be 0
belowIn fact, all the same

Indeed there is a storage folder, but I want mmt / sdcard ah, now get is this, how can I get it?
Reply:

reference to the third floor qeemiaomiao reply:
reference to the second floor wlcw16 reply: This is a reference path, do not worry.
Open your ddms File Explorer
You can see a list of info out
in your mnt / sdcard backWhich is similar to the write / storage/emulated/0 / this thing
Then you can find the storage folder in your File Explorer, there will be emulated below, and then there will be 0
belowAre actually the same
The ......


If it is to get the sd card file with this path can be
If it is in order to show it, really do not know.
Because this thing is to hide the sd card path.
Reply:
references, 4th Floor wlcw16 reply:
reference to the third floor qeemiaomiao reply: Quote, 2nd Floor wlcw16 reply: This is a reference path, do not worry.
Open your ddms File Explorer
You can see a list of info out
in your mnt / sdcard backWhich is similar to the write / storage/emulated/0 / this thing
Then you can find the storage folder in your File Explorer, there will be emulated below, and then there will be 0
below......

So before you have no problem in the end did not pay attention to what path today is to take the time out to ask the document, a look at this path to the next hop.
Eclipse of the original Bug caused the error, have nothing to do with the path.
But why LG and Samsung phones use reference path instead of the usual trails?
Reply:
references, 5th Floor qeemiaomiao reply:
references, 4th Floor wlcw16 reply: Quote third floor qeemiaomiao reply: Quote, 2nd Floor wlcw16 reply: This is a reference path Do not worry.
Open your ddms File Explorer
You can see a list of info out
in your mnt / sdcard backWhich is similar to the write / storage/emulated/0 / this thing
Then you can find in your File Explorer sto in ......

Should not be a bug, why should this particular handset manufacturers path I was not sure. Not carefully studied.
Reply:
reference to the 6th floor wlcw16 reply:
references, 5th Floor qeemiaomiao reply: Quote, 4th Floor wlcw16 reply: Quote third floor qeemiaomiao reply: Quote, 2nd Floor wlcw16 Re: This is a reference path, do not worry.
Open your ddms File Explorer
You can see a list of info out
in your mnt / sdcard backWhich is similar to the write / storage/emulated/0 / this thing
Then you can ......

I said before I write the project from the SD card that thing no problem, yesterday suddenly die, and then output a bit SD card path, began to think that this path has a problem, but after some reboot + CLEAN problem was not any.
Reply:
reference to the 7th floor qeemiaomiao reply:
reference to the 6th floor wlcw16 reply: Quote, 5th Floor qeemiaomiao reply: Quote, 4th Floor wlcw16 reply: Quote, 3rd Floor qeemiaomiao Reply: Quote, 2nd Floor wlcw16 reply: This is a reference path, do not worry.
Open your ddms File Explorer
You can see a list of info out
in your mnt / sdcard backWritten inside is similar to / storage / emu ......

That might really bug. .
Reply:
reference to the 8th floor wlcw16 reply:
reference to the 7th floor qeemiaomiao reply: Quote, 6th Floor wlcw16 reply: Quote, 5th Floor qeemiaomiao reply: Quote, 4th Floor wlcw16 Re: reference to the third floor qeemiaomiao reply: Quote, 2nd Floor wlcw16 reply: This is a reference path, do not worry.
Open your ddms File Explorer
You can see a list of info out ......

in your mnt / sdcard backSometimes I reported abnormal
when calling WebService methodjava.io.IOException: BufferedInputStream is closed,
Have you ever encountered such a situation
Reply:
reference to the 9th floor qeemiaomiao reply:
reference to the 8th floor wlcw16 reply: Quote, 7th Floor qeemiaomiao reply: Quote, 6th Floor wlcw16 reply: Quote, 5th Floor qeemiaomiao Reply: Quote, 4th Floor wlcw16 reply: Quote third floor qeemiaomiao reply: Quote, 2nd Floor wlcw16 reply: This is a reference path, do not worry.
Open your ddms File Explorer
You can

in your mnt ...... Really do not. What we do is local application, did not use webservice
Reply:
 imageFilePathString = Environment.getExternalStorageDirectory () getAbsolutePath () + "/ myfavoritepicture.jpg";. 
if (DEBUG)
{
Log.v (TAG, "picture path:" + imageFilePathString);
}

/ / Check sd card
if (! Environment.MEDIA_MOUNTED.equals (Environment.getExternalStorageState ())) {
if (DEBUG)
{
Log.v (TAG, "SD state is:" + Environment.getExternalStorageState ());
}
return;
}

File imageFile = new File (imageFilePathString);

No comments:

Post a Comment