问一下,4.0不能在SD卡下创建目录吗?为什么我权限有了,还是无法创建然后报错?
是权限不对吗?
报错如下:
08-24 16:51:42.045: W/System.err(3144): java.io.IOException: open failed: EACCES (Permission denied)
08-24 16:51:42.045: W/System.err(3144): at java.io.File.createNewFile(File.java:940)
08-24 16:51:42.045: W/System.err(3144): at qinXianYuZou.Qian.Shuju.chuangjianku_xie(Shuju.java:166)
08-24 16:51:42.045: W/System.err(3144): at qinXianYuZou.Qian.QianMingActivity$click_签名按钮.onClick(QianMingActivity.java:114)
08-24 16:51:42.045: W/System.err(3144): at android.view.View.performClick(View.java:3511)
08-24 16:51:42.055: W/System.err(3144): at android.view.View$PerformClick.run(View.java:14109)
08-24 16:51:42.055: W/System.err(3144): at android.os.Handler.handleCallback(Handler.java:605)
08-24 16:51:42.055: W/System.err(3144): at android.os.Handler.dispatchMessage(Handler.java:92)
08-24 16:51:42.055: W/System.err(3144): at android.os.Looper.loop(Looper.java:137)
08-24 16:51:42.055: W/System.err(3144): at android.app.ActivityThread.main(ActivityThread.java:4424)
08-24 16:51:42.065: W/System.err(3144): at java.lang.reflect.Method.invokeNative(Native Method)
08-24 16:51:42.065: W/System.err(3144): at java.lang.reflect.Method.invoke(Method.java:511)
08-24 16:51:42.065: W/System.err(3144): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
08-24 16:51:42.065: W/System.err(3144): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
08-24 16:51:42.065: W/System.err(3144): at dalvik.system.NativeStart.main(Native Method)
08-24 16:51:42.075: W/System.err(3144): Caused by: libcore.io.ErrnoException: open failed: EACCES (Permission denied)
08-24 16:51:42.075: W/System.err(3144): at libcore.io.Posix.open(Native Method)
08-24 16:51:42.075: W/System.err(3144): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
08-24 16:51:42.075: W/System.err(3144): at java.io.File.createNewFile(File.java:933)
08-24 16:51:42.075: W/System.err(3144): ... 13 more