balanv
balanv

Reputation: 10898

is it possible to mention the Android Version of Device to be filtered in Manifest file?

I learnt i can filter out devices to which my android application is available by using certain conditions in Manifest file.

But is it possible to specify the Android Version used in the device as a filter?

Scenario :

i actually wan to restrict device based on Android version used in the device.. for example in Galaxy S3 the android Version is 4.0.4...

so if i do the configuration, the only devices with Android version 4.0.4 will be able to download my app in Google store..

if so please suggest.

Upvotes: 3

Views: 146

Answers (3)

balanv
balanv

Reputation: 10898

Yes, as like above suggested answers we can restrict using uses-sdk

Below screen shows, which API Level represents which Android Version. This should be useful to some one.

enter image description here

This can be seen in android SDK Manager.

Upvotes: 0

Suraj Bajaj
Suraj Bajaj

Reputation: 6640

Your question is unclear to me.

This is how you can set which version of Android can install your app.

<uses-sdk android:minSdkVersion="integer" 
          android:targetSdkVersion="integer"
          android:maxSdkVersion="integer" />

Note: The version numbers are SDK version NOT the Android versions.

Refer docs for more details. Here you can also see what SDK Level corresponds to which Android Platform version.

Upvotes: 2

ZhDev
ZhDev

Reputation: 244

You use this element in the manifest fo accomplish that, have a look at the Android developer's site:

<uses-sdk>

Lets you express an application's compatibility with one or more versions of the Android platform, by means of an API Level integer. The API Level expressed by an application will be compared to the API Level of a given Android system, which may vary among different Android devices.

Upvotes: 2

Related Questions