Reputation: 10898
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
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.
This can be seen in android SDK Manager.
Upvotes: 0
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
Reputation: 244
You use this element in the manifest fo accomplish that, have a look at the Android developer's site:
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