Android Compatibility Package on Android 3+

坚强是说给别人听的谎言 提交于 2019-12-11 08:29:18

问题


There's something I don't get with the compatibility package. You get the APIs of Android 3+ under android 1.x-2.x. Great. But what about an app that you design to be compatible with android 1 to 4?

Let's say I want to develop an app that uses Fragments even on Android 2.x phones. Fine, I'll use the compatibility package. But what about this very app running on ICS? The app will use the compatibility package instead of the native APIs present in the ICS phone?


回答1:


Yes, the app will use the compatibility package instead of the native APIs. You can test that by debugging an app using the compatibility package and running on ICS; you will see it still uses the compatibility package.



来源:https://stackoverflow.com/questions/8881797/android-compatibility-package-on-android-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!