How to Set the Minimum and Target SDK version for your Android App
android:minSdkVersion - the minimum version of Android that the user must be running for the application to run properly on his or her device. android:minSdkVersion is not required for an Android project. However, if a minSdkVersion is not indicated, a default value of 1 will be used.
1. Create a new Android project, if you don't already have one.
2. Open the AndroidManifest.xml file and add the following highlighted code below after the<manfest> tags and before the <application> tags. This will set the Minimum SDK Version to API Level 11 and the Target SDK Version to API Level 17.
</manifest>
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="17" />
<application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
3. Compile and run!
Resources:
- Professional Android 4 Application Development by Reto Meier
- Android Application Development For Dummies by Donn Felker