Which Android API to use?

北战南征 提交于 2019-12-04 04:24:55

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

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

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

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

In short

For 2.1 you have to download API level 7

For 2.2 you have to download API level 8

For 2.3 you have following choices to download API levels

2.3 - 2.3.2 -- API level 9

2.3.3 - 2.3.7 -- API level 10

For seeing API levels and Android OS versions you must see :API Levels

I recommend you to go through Platform Versions atleast once before you start building any android application.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!