其中Android的API来使用?Android、API

由网友(精英↘战ING)分享简介:我打算在开发Android应用程序。我下载了SDK和AVD管理,以及有关下载SDK平台。I'm planning on developing Android Apps. I downloaded the SDK and AVD manager, and about to download the SDK platfo...

我打算在开发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>

下面是的 Android开发者网站。

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

阅读全文

相关推荐

最新文章