如果一个传统的Andr​​oid应用程序中使用SDK 2.1进行重建?应用程序、传统、Andr、oid

2023-09-06 06:37:20 作者:黃昬洅美.丶.終要天嘿/

我有一个使用众所周知的 对于传统应用程序 。它是建立在Android SDK 2.0清单设置的minSdkVersion =3(API 1.5)和targetSdkVersion =10(2.0)。 问题1:由于未指定maxSdkVersion时,应用程序应该是安装和compatable新近发布的Andr​​oid版本2.01和2.1是否正确?在这个时间点,我不打算将使用任何新的API功能,任何增强。 问题2:是有重建与Android SDK 2.1应用程序的任何价值? 问题3:如果这样,应该targetSdkVersion从5(API 2.0)变更为图7(API 2.1)?

解决方案   

问题1:由于maxSdkVersion不  指定时,应用程序应该是  安装和compatable与新  发布的Andr​​oid版本2.01和2.1  是否正确?

正确的。

  

问题2:有没有任何价值  重建与应用程序  Android SDK中2.1?

不是真的,如果你不打算使用新事物。

  

问题3:如果是这样,应该  targetSdkVersion从5改变  (API 2.0)到7(API 2.1)?

在一般情况下,targetSdkVersion应该是你上测试您的应用程序的最新版本:

的http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#target

I have an Android application that uses the well known Strategies for Legacy Applications. It is build with the Android SDK 2.0 with manifest settings minSdkVersion="3" (API 1.5) and targetSdkVersion="5" (2.0). Question1: Since maxSdkVersion is not specified, the application should be installable and compatable with newly released Android versions 2.01 and 2.1 correct? At this point in time, I am not planning any enhancements that will use any new API features. Question2: is there any value in rebuilding the application with Android SDK 2.1? Question3: If so, should targetSdkVersion be changed from 5 (API 2.0) to 7 (API 2.1)?

解决方案

Question1: Since maxSdkVersion is not specified, the application should be installable and compatable with newly released Android versions 2.01 and 2.1 correct?

correct.

Question2: is there any value in rebuilding the application with Android SDK 2.1?

not really, if you're not planning on using anything new.

Question3: If so, should targetSdkVersion be changed from 5 (API 2.0) to 7 (API 2.1)?

in general, targetSdkVersion should be the newest version you've tested your application on:

http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#target