cache = new File (Environment.getExternalStorageDirectory (), "cache");
if cache.mkdirs () (cache.exists ()!);
Permissions added
<-! Permissions to create and delete files in SDCard in ->
<-! Permission to write data to SDCard ->
But in the / mnt / sdcard / cache does not have this cache file
What documents are not inside sdcard
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
No problem
codeProblem is
First, you execute this code it? You add the Log detect the method performs what, you look cache.mkdirs (); Returns What
Second, the way you see if there is wrong? Is not the view of the different simulators
Third, this method is created under the following sdcard cache file.
Reply:
if (! cache.exists ()) {
cache.mkdirs (); / / perform here, but do not create a folder
Log.i ("cache - >>", "cache22 =" + cache);
}
Reply:
/ Mnt / sdcard / li What documents are not
Reply:
With adb shell permission to go look there wr, if not, then su, then chmod 777 sdcard and then try to run
Reply:
CHMOD can not modify the permissions? ?
Reply:
SD card mounted as read-only, the ~ ~
Reply:
Folder permissions have been modified, but still did not run to create a folder inside it?
Reply:
Exit the shell using adb remount it, remount your sdcard look
Reply:
adb remount or revert to the original, now I see there is also a directory how it sdcard folder
No comments:
Post a Comment