Which version of the target and minimum SDK do you choose?

Hey, I'm just creating a basic application with text, URLs, pictures and some buttons. When you create a new project, which version of the assembly do you usually choose? The highest, 2.2? Also, what is the minimum SDK you have chosen? Also 2.2? or the lowest option?

I'm a little confused about what would be best for all clients

-Thanks!

+7
android build-process
source share
3 answers

You must choose what you want to support.

If you want to use the latest API features, select 2.2 (or soon 2.3). But if you want to include all possible phones, you need to reach 1.5 for a minimum goal. The catch is that if they use the 1.5 device, you avoid making API calls that exist only in a later version of Android.

+4
source share

It depends on what you want to do. If you want to support multiple versions of Android, then do what Falmarry said. Choose the lowest version of the API that you want to support for minSDK , and select the version of the API that you are targeting for buildTarget .

However, you should keep in mind that you may have to handle certain things differently for different versions of the API, which may require an if-else lock on the version of the API. There is nothing complicated about it, and something magic just does not forget and checks the link page for the classes and methods that you use.

+1
source share

My two cents is that I am also studying this issue. With the exception of this page, I also found the following official statistics that would be useful.

http://developer.android.com/resources/dashboard/platform-versions.html

In addition, if you already have applications published on the market, you can get information about how your specific application is perceived by your audience, this can help you choose.

From a personal point of view, at the time of writing, I am going to install the minimum version of version 2.2, since this is the minimum level of API required for writing applications using OpenGL ES 2.0.

(a bit off topic, but for determining OpenGL ES 2.0 approval http://developer.android.com/resources/tutorials/opengl/opengl-es20.html )

+1
source share

All Articles