冰淇淋三明治的向后兼容性
我开发了一个在蜂窝上运行的应用程序。我想知道冰淇淋三明治会有问题吗? ICS的向后兼容性是什么?
I have developed an application which it runs on honeycomb. I wonder that can there be problem on Ice Cream Sandwich? What is the backwards compatibilities of ics?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
最简单的事情就是自己尝试一下,ICS 已经在 Android SDK 中提供,安装它并检查您的应用程序是否仍然运行。但通常 Android 具有很好的向后兼容性(版本之间的行为仍然可能存在一些细微的差异)。
The easiest thing is go try it yourself, ICS is already available in the Android SDK, install it and check if your app still runs. But usually android is pretty nicely backward compatible (there still might be some small differences in behaviour between the versions).
您可能想查看 API 差异报告。
http://developer.android.com/sdk/api_diff/14/changes.html
如果您的应用程序是为 3.0 构建的,则它应该在 ICS 上运行。
不过,对于较小的屏幕,它可能需要不同的布局,
谢谢
拉吉迪普
You might want to look at the API diff report.
http://developer.android.com/sdk/api_diff/14/changes.html
If your app was built for 3.0, it should run on ICS.
It might need a different layout for smaller screens though
Thanks
Rajdeep
Android 4.0 设备应该能够运行您的 android 3.x 目标应用程序。
但随着 Android 4.0 中引入的新 API,为 Android 4.0 设计的代码很可能无法在 Android 3.x 上运行。
直接检查您的应用程序并不难。
我建议您下载 Android 4.0 SDK(确保您也有 ARM 映像)并在模拟器上尝试。
Android 4.0 devices should be able to run your android 3.x targeted application.
But with the new apis introduced in Android 4.0, code designed for Android 4.0 may well not work on Android 3.x.
Its not hard to check your app directly.
I suggest you download the Android 4.0 SDK (make sure you've got the ARM image too) and try it on the emulator.
我发现不向后兼容的一个领域是基于屏幕尺寸的新 res/layout 规范 ( http://developer.android.com/guide/practices/screens_support.html#DeclaringTabletLayouts )。这是一个很大的遗憾,因为它是比旧的布局大、布局xlarge等更明智的方法。
One area that I found to not be backwards compatible is the new res/layout specification based on screen size ( http://developer.android.com/guide/practices/screens_support.html#DeclaringTabletLayouts ). This is a great pity because it is a far saner approach then the old layout-large, layout-xlarge, etc.