Is there a way to prevent an app from being installed on Android Honeycomb? I am looking for either a market filter or a manifest option.
Asked
Active
Viewed 616 times
0

Programmer Bruce
- 64,977
- 7
- 99
- 97

Erez A. Korn
- 2,697
- 3
- 24
- 32
-
What are you trying to avoid? Is there some kind of compatibility problem? – beatgammit Apr 20 '11 at 05:19
-
I'd like to be able to provide Honeycomb specific version for the application in Market, without having to put all the new code in the "older" version. – Erez A. Korn Apr 20 '11 at 07:32
2 Answers
1
In your Android Manifest file, set the uses-sdk
tag. Android 3.0 is level 11. Also note, however, that Google explicitly states that they make their code backwards compatible so you don't have to do this. If you have a good reason to, go ahead, but be aware that Google thinks most people should never have to.

Zach Rattner
- 20,745
- 9
- 59
- 82
-
I remember reading a google employee saying the maxSdkVersion is deprecated, as it didn't really make sense as the device OS could be updated after the app was installed. Unfortunately my google-fu is weak on tracking down a link. – Phil Lello Apr 20 '11 at 05:32
-
Ah, I mis-remembered. The quote was "That is the reason we stopped supporting this attribute in the platform, it was dumb, and leads to really dumb behavior like that." The URL is http://groups.google.com/group/android-developers/browse_thread/thread/d4e1171be52819e7 – Phil Lello Apr 20 '11 at 05:59
1
According to this discussion on google groups (android-developers list), setting maxSdkVersion="10" will block Honeycomb; however it won't stop a device upgrading to Honeycomb (or force app uninstall) once your app is installed.

Phil Lello
- 8,377
- 2
- 25
- 34
-
Thank you for the quick reply. However, documentation in developer.android.com states: "Future versions of Android (beyond Android 2.0.1) will no longer check or enforce the android:maxSdkVersion attribute during installation or revalidation." At least it should help with Market. – Erez A. Korn Apr 20 '11 at 07:30