开发者

Time and Date getHour(), getDay() etc... still work on Android 2.3 and 3.0?

开发者 https://www.devze.com 2023-01-30 18:17 出处:网络
these met开发者_C百科hods are deprecated... but... still work on android 2.3 or 3.0 ? i\'m sure they work on 2.1, cause i tested it on my android phone, but works also in 2.3 or 3.0 ?Those methods ar

these met开发者_C百科hods are deprecated... but... still work on android 2.3 or 3.0 ?

i'm sure they work on 2.1, cause i tested it on my android phone, but works also in 2.3 or 3.0 ?


Those methods are not android-specific, but is in the core java class library and have been deprecated since JDK 1.1 from around 1997. So they remain until there is a non-compatible version of java released.


To add a little, in the Java world, @Deprecated is here to indicate methods you should not use. They still work, for compatibility reasons, but you are advised not to used them. Moreover, as fornwall said, these are old Java 1.1 methods, not Android-specific ones.

0

精彩评论

暂无评论...
验证码 换一张
取 消