I wanted to create an app that would take advantage of API level 11, but
still run in a reduced functionality mode down to API level 8.

In my projects settings, I tried setting "Application/Minimum Android to
Target" to "Android 2.2" and "Android Manifest/Target API level" to 12
(closest available to 11).  Unfortunately, my application wouldn't compile
since it was taking advantage of API level 11.  If I
set  "Application/Minimum Android to Target" to "Android 3.1", it would
compile but wouldn't run on an Android 2.2 machine.

I was able to solve my problem by manually editing AndroidManifest.xml and
adding android:minSdkVersion="8" to the uses-sdk attribute.  That allowed
be to compile (I had Minimum Android to Target set to 3.1), and since I
guarded the API 11 section of my code it would run on a 2.2 machine.

Is Minimum Android to Target supposed to set minSdkVersion in
AndroidManifest.xml?  If not, that would seem to be a useful setting to
expose in some manner.

Thanks,

Darren
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to