Android的兼容包在Android 3+ [英] Android Compatibility Package on Android 3+

查看:264
本文介绍了Android的兼容包在Android 3+的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有件事情我不与兼容包搞定。你得到的Andr​​oid 3+的API下的Andr​​oid 1.x中,2.X。大。但是关于你设计是与Android 1至4兼容的应用是什么?

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?

比方说,我要发展,即使在Android 2.x的手机使用片段的应用程序。好吧,我将使用兼容包。但是,这个程序非常ICS上运行的是什么?该应用程序将在ICS手机使用兼容程序包,而不是本机API present的?

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?

推荐答案

是,应用程序将使用兼容程序包,而不是本机API。您可以使用兼容包调试应用程序和运行ICS测试;你会看到它仍然使用兼容包。

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.

这篇关于Android的兼容包在Android 3+的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆