Hi
I want to write my cache files into external cache directory. But I
can't to create cache path
I check that external storage exists
...
String state = Environment.getExternalStorageState();
if (Environment.MEDIA_MOUNTED.equals(state)) {
File path = new File(this.getExternalCacheDir(), "");
String s=path.getPath();
// result -> s= /mnt/sdcard/Android/data/vk.android.anekdot/cache;
// than I want to create full path and get false.
Boolean bmkdirs=path.mkdirs();
...
}
I have permission in manifest <uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
What's wrong? Hot to solve this issue?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en