Ok that makes sense. It would be nice if there was some sort of static analysis that could warn when we use an incompatible API. In order to figure out what's incompatible with each version I'll need to keep changing the minimum target so that the compiler can tell me what's not supported at which level. ________________________________________ From: [email protected] [[email protected]] on behalf of Jonathan Pryor [[email protected]] Sent: Tuesday, April 02, 2013 10:08 PM To: Discussions related to Mono for Android Subject: Re: [mono-android] Minimum Android to target option
On Apr 2, 2013, at 1:56 PM, Jeremy A. Kolb - ARA/NED <[email protected]> wrote: > I guess my question is: what’s the best way to achieve my goal and what > exactly does “Minimum Android to target option” do? You're using Visual Studio, correct? Visual Studio doesn't have any way to set the android:minSdkVersion attribute; the "Minimum Android to target" option controls the android:targetSdkVersion attribute and $(TargetFrameworkVersion), the version of Mono.Android.dll that your code is compiled against. You should set the Minimum Android to target option to the API level with the APIs you want to use, and add your <uses-sdk/> fragment to AndroidManifest.xml so that you override the default android:minSdkVersion attribute. - Jon _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
