如果我写的采用Android 4平台,将在Android的2设备的应用程序工作的应用程序? [英] If I write an app using Android 4 Platform, will the app work in Android 2 devices?

查看:163
本文介绍了如果我写的采用Android 4平台,将在Android的2设备的应用程序工作的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写采用Android SDK和Eclipse的应用程序。 我安装了安卓4.0平台使用SDK管理器,但我想知道,将与Android设备2这个应用程序的工作?或仅安卓4.0设备?

I want to write an app using Android SDK and Eclipse. I installed Android 4 Platform using the SDK Manager, but I'm wondering, will this app work with Android 2 Devices? or only Android 4 Devices?

感谢。

推荐答案

在您的应用程序清单XML文件中,你必须指定最小和期望的目标SDK版本。 我正在开发一个应用程序,Android的目标4.0.3(SDK V15),但必须运行在2.3.3(SDK V10)。

In your App Manifest XML file you must specify the Minimum and Desired Target SDK version. I am developing a App that Target Android 4.0.3 (SDK v15) but must run on 2.3.3 (SDK v10).

<uses-sdk
    android:minSdkVersion="10"
    android:targetSdkVersion="15" />

当然,你必须使用只可用较低的SDK函数。 你也应该看看谷歌支持库多数民众赞成在旧的SDK可以让一些新的功能。 http://developer.android.com/tool​​s/extras/support-library.html

Off course you have to use only the lower SDK available functions. You should also look the Google Support Library thats make available some new functions for older SDK. http://developer.android.com/tools/extras/support-library.html

//马塞罗

这篇关于如果我写的采用Android 4平台,将在Android的2设备的应用程序工作的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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