Is MediaStore.MediaColumns#DATE_TAKEN only available from API level 29?

好久不见. 提交于 2021-02-10 04:56:16

问题


I am trying to use MediaStore.Images.Media.DATE_TAKEN and getting warning from Android Studio IDE that it requires API 29 (Android Q). The official Google documentation here says this was Added in API level 29. Is this really true?

I've checked the Google Sources from past releases all the way back until API 19 (KitKat) and I saw MediaStore.MediaColumns#DATE_TAKEN field being available since then. Why is the official documentation saying something different?

Android 4.4 (KitKat) MediaStore

Android 5.0 (Lollipop) MediaStore

Android 6.0 (Marshmallow) MediaStore

Android 7.0 (Nougat) MediaStore

Android 8.0 (Oreo) MediaStore

Android 9.0 (Pie) MediaStore

Can someone please clarify the truth? Can I reliably use MediaStore.Images.Media.DATE_TAKEN from API 19+? Thanks!

来源:https://stackoverflow.com/questions/64376737/is-mediastore-mediacolumnsdate-taken-only-available-from-api-level-29

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!