Android: How to set minimum API level?

Some applications are written for newer Android platform version and they don’t work on older platforms. We can prevent users to install applications on their devices.
We had to set android:minSdkVersion to the AndroidManifest.xml.

The complete list of API levels is available in the Android Manifest documentation. It’s good to know how many devices are still using each API Level, before you set the minSdkVersion – data are available on Android Dashboards.

An example of the AndroidManifest.xml file: API level 14 is Android 4.0. Everyone with older platform version won’t be able to install the application.

<manifest>
  <uses-sdk android:minSdkVersion="14" />
</manifest>


Leave a Reply