Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: how to know what is the minimum required API to run my Android app? [closed]

As everybody, I use in my project many libraries and methods. For each method, it is mentioned "Available since API XX" in the Android documentation.

Is there a tool in Ecplise to know what is the minimum API required to run my project ? (without having to go throw all the methods used in my project to check which one uses the lowest API...)

A solution is to use the emulator with different levels of API but is there any other simple tool to do this checking ?

I use Eclipse.

Thanks !

[EDIT]

Found the solution ! What I actually did is the following (very simple): 1) Right click on your project folder (blue folder) 2) Click "Properties" 3) Click "Android" 4) Decrease the API version 5) Click on "Apply" and "OK" 6) See if some errors appears 6) Repeat the procedure until finding the lowest API for which one you don't have errors 7) Write the API level in targetSdkVersion in your AndroidManifest.xml !! 8) Finally, test the app in the emulator set up with this minimum API level !

like image 738
Regis_AG Avatar asked Aug 23 '11 09:08

Regis_AG


People also ask

What is the minimum API level that the Android application supports?

Starting November 1, 2022 if your app doesn't target API level 30 or above, new users with newer Android OS versions won't be able to discover or install your app on Google Play. You can request an extension if you need more time to update your app.

What is the minimum required SDK API level?

android:minSdkVersion — Specifies the minimum API Level on which the application is able to run. The default value is "1".

How do you specify the minimum version of Android required by your application?

For instance, Android 1.0 is API level 1 and Android 4.4 is API level 19. The API level allows you to declare the minimum version with which your app is compatible, using the <uses-sdk> manifest tag and its minSdkVersion attribute.

How do I know minimum SDK?

Go to: File > Project Structure , then under modules choose your module (that probably will be app , then under the tab flavors you can see minimum sdk and target sdk. There is no maximum because many things changes during times.


1 Answers

Decrease the value oftargetSdkVersion in your AndroidManifest.xml, and keep decreasing it until you start to get errors or warnings.

like image 170
Graham Borland Avatar answered Oct 22 '22 20:10

Graham Borland