#12 Environment.getExternalStorageDirectory() is deprecated for API Levels 29 and over

开启中
victor.hernandez174 年前创建 · 0 条评论

Usage of Environment.getExternalStorageDirectory() is deprecated for API Levels 29 and over. Must substitute for some other external storage access method like Context.getExternalFilesDir(String), MediaStore, or Intent.ACTION_OPEN_DOCUMENT.

Luckily, this method is only used to read/write the consent form to device storage, so there are not many occurrences of it across the codebase.

More info here.

Usage of `Environment.getExternalStorageDirectory()` is deprecated for API Levels 29 and over. Must substitute for some other external storage access method like `Context.getExternalFilesDir(String)`, `MediaStore`, or `Intent.ACTION_OPEN_DOCUMENT`. Luckily, this method is only used to read/write the consent form to device storage, so there are not many occurrences of it across the codebase. [More info here](https://developer.android.com/reference/android/os/Environment#getExternalStorageDirectory()).
victor.hernandez17 添加了标签
deprecated
4 年前
登陆 并参与到对话中。
未选择里程碑
未指派成员
1 名参与者
到期时间

未设置到期时间。

正在加载...
取消
保存
这个人很懒,什么都没留下。