android4.4 两个sdcard一个可以访问,另一个报无权限
伊谢尔伦
伊谢尔伦 2017-04-17 12:05:29
0
1
359

I/System.out( 922): mkdir failed: EACCES (Permission denied) path = /storage/sdcard1/com.ayst.healthkit

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

membalas semua(1)
巴扎黑

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.

Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan
Tentang kita Penafian Sitemap
Laman web PHP Cina:Latihan PHP dalam talian kebajikan awam,Bantu pelajar PHP berkembang dengan cepat!