Thursday, March 22, 2012

[android-developers] Android build and target versions

I've seen various questions related to the different between the
minSdkVersion and the targetSdkVersion, and I understand the principle
here. My question is more related to how you handle new android
versions, and what you should specify then.

Scenario: I built my app a year ago, when 2.3.3 (level 10) was out,
and wanted to support back to 1.6 (level 4). So my manifest stated:

<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="10" />

Also, in my Eclipse setup, I specified that the project should be
built using 2.3.3

Now, there are several newer versions available, up to 4.0.3 (level
15). I want my app to be available to all possible devices, and as far
as I can tell this seems to be the case. At this moment in time, I
don't require any extra features that the newer APIs offer.

Should I update my project to build with the newer version? Should I
change the targetSdkVersion?

If I don't change it, are there any drawbacks?

Thanks.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment