其中Android的API来使用? [英] Which Android API to use?

查看:95
本文介绍了其中Android的API来使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算在开发Android应用程序。我下载了SDK和AVD管理,以及有关下载SDK平台。

I'm planning on developing Android Apps. I downloaded the SDK and AVD manager, and about to download the SDK platforms.

我的问题是,我想开发2.X平台的应用程序。我是否需要下载API 7-10?哪一个目标?

My question is, I want to develop apps for 2.x platform. Do I need to download API 7-10? Which one to target?

另外,如果您有任何关于本提示,请提及他们。谢谢你。

Also, if you have tips regarding this, please mention them. Thank you.

推荐答案

这是没有必要下载所有的平台,只要下载最新的SDK,并与其他SDK应用程序兼容。

It is not necessary to download all the platforms, just download the latest SDK and make your application compatible with other SDK.

有关,你只需要定义安卓的minSdkVersion和android:maxSDKVersion,机器人:targetSDKVersion

For that you just need to define android:minSDKVersion and android:maxSDKVersion, android:targetSDKVersion.

   <uses-sdk android:maxSdkVersion="12"
              android:minSdkVersion="8">
    </uses-sdk>

下面是的兼容性中的最佳实践一节详细的文章=htt​​p://developer.android.com/> Android开发者网站。

Here is a detailed article on "Compatibility" in "Best Practices" section at Android Developer site.

这篇关于其中Android的API来使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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