如果一个传统的Andr​​oid应用程序中使用SDK 2.1进行重建? [英] Should a legacy Android application be rebuilt using SDK 2.1?

查看:125
本文介绍了如果一个传统的Andr​​oid应用程序中使用SDK 2.1进行重建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用众所周知的 <我的Andr​​oid应用程序>对于传统应用程序<策略/ I> 。它是建立在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

这篇关于如果一个传统的Andr​​oid应用程序中使用SDK 2.1进行重建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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