开发者

Why is an API introduced in Honeycomb working on Gingerbread?

In the documentation for D开发者_JS百科atabaseUtils.concatenateWhere(...) it is stated that it is supported from API level 11+ (HONEYCOMB). However, while testing compatibility on various devices, that on my Droid X running Cyanogenmod 7 nightly build 98 (based on gingerbread 2.3.5), the method call not only does not cause a crash, but works as expected.

Is this some inconsistency with my custom ROM, or can anyone else reproduce this functionality on another device that is running Gingerbread or lower? Could this be an error in the SDK documentation?


It looks like an error in the documentation.

GrepCode shows that the method exists in Android 2.3.4_r1.

In fact, the method exists in all versions including 1.5_r4.


Well, Android 2.3.5 was released after Honeycomb. I don't find it unreasonable that Google might have implemented certain APIs from Honeycomb to help fight fragmentation. I wouldn't count on it working in other versions of Gingerbread though, without thorough testing.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜