Interface UsesSdk

  • All Known Implementing Classes:
    AndroidManifest

    public interface UsesSdk
    Represents the contents of a uses-sdk element in an Android manifest file.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Integer getMaxSdkVersion()
      Returns the maximum Android SDK version that this package expects to be runnable on, as specified in the manifest.
      int getMinSdkVersion()
      Returns the minimum Android SDK version that this package expects to be runnable on, as specified in the manifest.
      int getTargetSdkVersion()
      Returns the Android SDK version that this package prefers to be run on, as specified in the manifest.
    • Method Detail

      • getMinSdkVersion

        int getMinSdkVersion()
        Returns the minimum Android SDK version that this package expects to be runnable on, as specified in the manifest.
        Returns:
        the minimum SDK version
      • getTargetSdkVersion

        int getTargetSdkVersion()
        Returns the Android SDK version that this package prefers to be run on, as specified in the manifest. Note that this value changes the behavior of some Android code (notably SharedPreferences) to emulate old bugs.
        Returns:
        the target SDK version
      • getMaxSdkVersion

        Integer getMaxSdkVersion()
        Returns the maximum Android SDK version that this package expects to be runnable on, as specified in the manifest.

        If no maximum version is specified, null may be returned.

        Returns:
        the maximum SDK version, or null