I/System.out( 922): mkdir failed: EACCES (Permission denied) path = /storage/sdcard1/com.ayst.healthkit
I/System.out( 922): mkdir failed: EACCES (Permission denied) path = /storage/sdcard1/com.ayst.healthkit
3 回答938 阅读✓ 已解决
2 回答1k 阅读✓ 已解决
1 回答817 阅读✓ 已解决
2 回答930 阅读
2 回答868 阅读
1 回答803 阅读
1 回答854 阅读
Android 4.4 取消了非内置应用的第二个及以上外置存储器的写权限,但是这个存储器有个目录除外.../Android/data/data/packe-name/
附上官方解释:
http://developer.android.com/intl/zh-cn/guide/topics/data/data-storage.html#filesExternal
Note: Beginning with Android 4.4, these permissions are not required if you're reading or writing only files that are private to your app. For more information, see the section below about saving files that are app-private.