【Android Studio JAVA】 Environment.getExternalStorageDirectory() 闪退
·
题目中的是老版的代码
至少从安卓11起要改为 getApplicationContext().getExternalFilesDir("")
(很多帖子直接写成context,但是实际上是 getApplicationContext )
更多推荐
题目中的是老版的代码
至少从安卓11起要改为 getApplicationContext().getExternalFilesDir("")
(很多帖子直接写成context,但是实际上是 getApplicationContext )
更多推荐
所有评论(0)