4

I'm not too familiar with which features belonging to which android version. Is there an easy way to discover the lowest version of android that my app can run in?

Xtreme
  • 1,601
  • 7
  • 27
  • 59

6 Answers6

3

You can do it with lint tool. Try to set minSdkVersion to 1 and run lint. It'll show all methods and objects which later API is required for.

aslgb
  • 31
  • 2
0

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

Before setting the minimum sdk version please check the scenario here. You can detect it programmatically .

http://developer.android.com/about/dashboards/index.html

enter image description here

Chirag
  • 56,621
  • 29
  • 151
  • 198
0

what do you mean by detecting.. its up to you that which minimum api level you want your app to be supported. select any android:minSdkVersion e.g 8,10 etc. If any of the feature you are using which is not supported on this api level Eclipse will automatically tell, else use Android Lint

sarabhai05
  • 578
  • 1
  • 4
  • 12
-1

The minimum SDK version is the one you declare in your manifest for example the following line will set the minimum SDK version of your app to 7.

Dinesh Venkata
  • 1,087
  • 1
  • 9
  • 22
  • I know, but I want to find out the lowest value I can set without having to test manually for each Avd in emulartorn. – Xtreme Oct 01 '12 at 12:52
-1

you can't discover like this. If you want to test your app in all versions of avds

set your app minSdkVersion to 8 and targetSdkVersion to 15

  • create all all versions of Android Virtual machines(avd) which you want to test

  • run your app in all versions of avds which you have created by selecting android target

Ram kiran Pachigolla
  • 20,897
  • 15
  • 57
  • 78
  • Was thinking something like this but without having to do it manually;-) Ex Eclipse gives a warning that a feature in my app is not supported in the version I specified in the manifest. – Xtreme Oct 01 '12 at 12:56
-1

No way to do it programmatically.

user584513
  • 630
  • 11
  • 20