- söz dizimi:
<uses-permission-sdk-23 android:name="string" android:maxSdkVersion="integer" />
- bulunduğu yer:
<manifest>
- description:
- .
Bir uygulamanın, yalnızca aşağıdaki durumlarda belirli bir izin istediğini belirtir
Android 6.0 (API düzeyi 23) veya sonraki sürümleri çalıştıran bir cihazda yüklü olması gerekir. Cihaz
API düzeyi 22 veya önceki bir sürümü çalıştırıyorsa uygulama, belirtilen
izni gerekir.
Bu öğe, bir uygulamayı yeni bir uygulama özelliğini kullanmanızı öneririz. Bir kullanıcı, API düzeyi 22 veya daha düşük bir sürümü çalıştıran cihazlarda sistem, belirtilen tüm yeni izinleri vermek için yükleme sırasında güncelleyin. Yeni bir özellik yeterince küçükse, bu özelliği bütünüyle kullanabilir. Böylece, kullanıcının uygulamayı güncellemek için ek izinler alın.
Şunu kullanarak:
<uses-permission>
yerine<uses-permission-sdk-23>
öğesi, izni yalnızca uygulama çalışıyorsa isteyebilirsiniz çalışma zamanı izinlerini destekleyen platformlar Burada, kullanıcının çalışırken uygulamaya izin verir.İzinlerle ilgili daha fazla bilgi için İzinler bölümüne bakın. bölümü ve Android'deki İzinler bölümündeki rehberini inceleyin. Temel platform tarafından tanımlanan izinlerin listesini mevcut Yer:
android.Manifest.permission
. - özellikler:
-
android:name
- .
İznin adı. Bu izin,
<permission>
özellikli uygulama öğesi, başka bir uygulama tarafından tanımlanmış bir izin ya da izinlerin arasında (örneğin,"android.permission.CAMERA"
veya"android.permission.READ_CONTACTS"
. android:maxSdkVersion
- . Size bu iznin verildiği en yüksek API düzeyidir: uygulamasını indirin. Uygulama, API düzeyi daha yüksek olan bir cihaza yüklenirse izni yok ve ilgili işlevleri kullanamıyor.
- tanıtıldığı yer:
- API düzeyi 23
- ayrıca bkz.:
<uses-permission-sdk-23>
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-27 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-27 UTC."],[],[],null,["# <uses-permission-sdk-23\u003e\n\nsyntax:\n:\n\n ```xml\n \u003cuses-permission-sdk-23 android:name=\"string\"\n android:maxSdkVersion=\"integer\" /\u003e\n ```\n\ncontained in:\n: [\u003cmanifest\u003e](/guide/topics/manifest/manifest-element)\n\n\ndescription:\n\n: Specifies that an app wants a particular permission, but only if the app is installed on a device running Android 6.0 (API level 23) or higher. If the device runs API level 22 or lower, the app doesn't want the specified permission.\n This element is useful when you update an app to include a new\n feature that requires an additional permission. If a user updates an app on a\n device that is running API level 22 or lower, the system prompts the user\n at install time to grant all new permissions that are declared in that\n update. If a new feature is minor enough, you might prefer to disable\n the feature altogether on those devices, so the user doesn't have to grant\n additional permissions to update the app.\n\n By using the\n `\u003cuses-permission-sdk-23\u003e` element instead of [`\u003cuses-permission\u003e`](/guide/topics/manifest/uses-permission-element),\n you can request the permission *only* if the app is running on\n platforms that support the [runtime permissions](/training/permissions/requesting)\n model, in which the user\n grants permissions to the app while it is running.\n\n\n For more information on permissions, see the [Permissions](/guide/topics/manifest/manifest-intro#perms)\n section in the app manifest overview and the [Permissions on Android](/guide/topics/permissions)\n guide. A list of permissions defined by the base platform is available\n at [android.Manifest.permission](/reference/android/Manifest.permission).\n\nattributes:\n:\n\n `android:name`\n :\n The name of the permission. This permission can be one defined by the\n app with the [\u003cpermission\u003e](/guide/topics/manifest/permission-element)\n element, it can be a permission defined by another app, or it can be one\n of the standard system permissions, such as\n [\"android.permission.CAMERA\"](/reference/android/Manifest.permission#CAMERA)\n or [\"android.permission.READ_CONTACTS\"](/reference/android/Manifest.permission#READ_CONTACTS).\n\n `android:maxSdkVersion`\n :\n The highest API level at which this permission is granted to your\n app. If the app installs on a device with a later API level, the app\n isn't granted the permission and can't use any related functionality.\n\nintroduced in:\n: API level 23\n\nsee also:\n:\n - [\u003cpermission\u003e](/guide/topics/manifest/permission-element)\n - [`\u003cuses-permission\u003e`](/guide/topics/manifest/uses-permission-element)\n - [\u003cuses-feature\u003e](/guide/topics/manifest/uses-feature-element)"]]