That didn't happen for me -- I had to set the minSdkVersion manually. But is sounds like I had the right idea, so I'll file a bug report.
Thanks, Darren On Thu, Jul 19, 2012 at 11:27 PM, Tom Opgenorth <t...@opgenorth.net> wrote: > Correct - the Minimum Android to Target will set the minSdkVersion in > AndroidManifest.XML. > > > On Thu, Jul 19, 2012 at 9:45 PM, Darren Abbott <dar...@darrenabbott.com>wrote: > >> 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 >> >> > > > -- > http://www.opgenorth.net > > _______________________________________________ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > >
_______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid