Wednesday, February 5, 2014

How does not copy the data files SDCard phone?


 String path = ""; 
Boolean isSDPresent = android.os.Environment.getExternalStorageState () equals (android.os.Environment.MEDIA_MOUNTED);.
if (isSDPresent)
{
.. path = Environment.getExternalStorageDirectory () getAbsolutePath () ;/ / IndexPage.getExternalCacheDir () getAbsolutePath () + "/ GrammarFolder";
}
else
{
path = theAct.getFilesDir () + "/ GrammarFolder"; / / no SDCard phone this path how to write?
}

Reply:
Not only wrote sdcard / data / youpackage / directory, or placed in memory inside.
There is no general app prompts can not be written directly sdcard sdcard.
Reply:
Get the name of the application package no sd card, then write papers on it.
Reply:
1 No SD card can only be stored in the phone memory.
2 Now a lot more high-end mobile phone itself on a great memory, and this time not even install additional memory card, the phone system will automatically put a portion of their memory into the phone memory card, then you can also To use the SD card access files.

No comments:

Post a Comment