问题
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