Share via


ApplicationInfo.TargetSdkVersion Property

Definition

The minimum SDK version this application targets.

[Android.Runtime.Register("targetSdkVersion")]
public Android.OS.BuildVersionCodes TargetSdkVersion { get; set; }
[<Android.Runtime.Register("targetSdkVersion")>]
member this.TargetSdkVersion : Android.OS.BuildVersionCodes with get, set

Property Value

Attributes

Remarks

The minimum SDK version this application targets. It may run on earlier versions, but it knows how to work with any new behavior added at this version. Will be android.os.Build.VERSION_CODES#CUR_DEVELOPMENT if this is a development build and the app is targeting that. You should compare that this number is >= the SDK version number at which your behavior was introduced.

Java documentation for android.content.pm.ApplicationInfo.targetSdkVersion.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to