Android的支持包/兼容库 - 使用V4或V13?Android

2023-09-12 09:22:27 作者:我们那些微笑的日子→

我刚刚读了Android支持包/兼容库的描述...

http://developer.android.com/sdk/compatibility-library.html

...并且它留给我有点迷糊!它说,V13库是v4的一个超集,但我认为这是周围的其他方式?

获得实用:如果我想使用兼容性库,这样我的应用程序构建并运行Android 2.2(API 8)手机一直到4.0(API 14)正常工作及以后,将V4足以满足我。 解决方案

要针对API 8(V2.2),你应该使用V4版本。

在V13的大节会的工作,但如果你使用任何依赖于平台的API 13在它的功能,您的应用程序将炸毁的旧设备。

除非有特别令人信服的理由需要V13,我建议直行为V4。

I've just read this description of the Android Support Package / Compatibility Library...

ePSXe PS模拟器 含Bios文件 电脑版下载 ePSXe PS模拟器 含Bios文件 电脑版怎么玩 ePSXe PS模拟器 含Bios文件 电脑版辅助安装包

http://developer.android.com/sdk/compatibility-library.html

... and it's left me a little confused! It says that the v13 library is a superset of v4 but I thought it was the other way around?

Getting practical: If I want to use the compatibility library such that my app builds and works fine for phones running Android 2.2 (API 8) through to 4.0 (API 14) and beyond, will v4 suffice for me?

解决方案

To target API 8 (v2.2) you should use the v4 version.

Large sections of the v13 will work, but if you use any of the features in it that rely on the platform 13 APIs, your app will blow up on older devices.

Unless there's a particularly compelling reason to need v13, I'd suggest going straight for v4.