As a new Calendar class was introduced in API 24 in package android.icu.util
with more calendars and better localization.
I'm wondering if there is a way to use this Calendar for Android API >=24, and old deprecated Calendar from java.util
package for Android API <24.
There is a little reason to set minSdkVersion = 24
.
Also I cannot assign android.icu.util.Calendar
to java.util.Calendar
field depending on API level.
Have anyone solved this? Or just use old calendar and wait untill market drop of old devices?