Android 16 में, डेवलपर के लिए बेहतरीन नई सुविधाएं और एपीआई जोड़े गए हैं. इन सुविधाओं के बारे में खास जानकारी देने के लिए, यहां दिए गए सेक्शन बनाए गए हैं. इनसे आपको मिलते-जुलते एपीआई का इस्तेमाल शुरू करने में मदद मिलेगी.
नए, बदले गए, और हटाए गए एपीआई की पूरी सूची के लिए, एपीआई के बीच अंतर की रिपोर्ट पढ़ें. नए एपीआई के बारे में ज़्यादा जानने के लिए, Android एपीआई का रेफ़रंस देखें — नए एपीआई को हाइलाइट किया गया है, ताकि उन्हें आसानी से देखा जा सके.आपको उन जगहों की भी समीक्षा करनी चाहिए जहां प्लैटफ़ॉर्म में हुए बदलावों का आपके ऐप्लिकेशन पर असर पड़ सकता है. ज़्यादा जानकारी के लिए, ये पेज देखें:
- Android 16 को टारगेट करने पर, ऐप्लिकेशन के काम करने के तरीके में होने वाले बदलाव
- ऐसे बदलाव जो
targetSdkVersion
के बावजूद, सभी ऐप्लिकेशन पर असर डालते हैं.
मुख्य फ़ंक्शन
Android में नए एपीआई शामिल हैं, जो Android सिस्टम की मुख्य सुविधाओं को बेहतर बनाते हैं.
साल 2025 में Android के दो एपीआई रिलीज़ किए जाएंगे
- This preview is for the next major release of Android with a planned launch in Q2 of 2025. This release is similar to all of our API releases in the past, where we can have planned behavior changes that are often tied to a targetSdkVersion.
- We're planning the major release a quarter earlier (Q2 rather than Q3 in prior years) to better align with the schedule of device launches across our ecosystem, so more devices can get the major release of Android sooner. With the major release coming in Q2, you'll need to do your annual compatibility testing a few months earlier than in previous years to make sure your apps are ready.
- We plan to have another release in Q4 of 2025 which also will include new developer APIs. The Q2 major release will be the only release in 2025 to include planned behavior changes that could affect apps.
In addition to new developer APIs, the Q4 minor release will pick up feature updates, optimizations, and bug fixes; it will not include any app-impacting behavior changes.

We'll continue to have quarterly Android releases. The Q1 and Q3 updates in-between the API releases will provide incremental updates to help ensure continuous quality. We're actively working with our device partners to bring the Q2 release to as many devices as possible.
Using new APIs with major and minor releases
Guarding a code block with a check for API level is done today using
the SDK_INT
constant with
VERSION_CODES
. This will continue
to be supported for major Android releases.
if (SDK_INT >= VERSION_CODES.BAKLAVA) {
// Use APIs introduced in Android 16
}
The new SDK_INT_FULL
constant can be used for API checks against both major and minor versions with
the new VERSION_CODES_FULL
enumeration.
if (SDK_INT_FULL >= VERSION_CODES_FULL.[MAJOR or MINOR RELEASE]) {
// Use APIs introduced in a major or minor release
}
You can also use the
Build.getMinorSdkVersion()
method to get just the minor SDK version.
val minorSdkVersion = Build.getMinorSdkVersion(VERSION_CODES_FULL.BAKLAVA)
These APIs have not yet been finalized and are subject to change, so please send us feedback if you have any concerns.
उपयोगकर्ता अनुभव और सिस्टम यूज़र इंटरफ़ेस (यूआई)
Android 16, ऐप्लिकेशन डेवलपर और उपयोगकर्ताओं को ज़्यादा कंट्रोल और सुविधाएं देता है. इससे वे अपनी ज़रूरतों के हिसाब से अपने डिवाइस को कॉन्फ़िगर कर सकते हैं.
प्रोग्रेस से जुड़ी सूचनाएं
Android 16 introduces progress-centric notifications to help users seamlessly track user-initiated, start-to-end journeys.
Notification.ProgressStyle
is a new notification
style that lets you create progress-centric notifications. Key use cases include
rideshare, delivery, and navigation. Within the Notification.ProgressStyle
class, you can denote states and milestones in a user journey using
points and segments.
To learn more, see the Progress-centric notifications documentation page.


'पीछे जाने पर झलक दिखाने वाला हाथ का जेस्चर' सुविधा से जुड़े अपडेट
Android 16 adds new APIs to help you enable predictive back system animations in
gesture navigation such as the back-to-home animation. Registering the
onBackInvokedCallback
with the new
PRIORITY_SYSTEM_NAVIGATION_OBSERVER
allows your app to
receive the regular onBackInvoked
call whenever the
system handles a back navigation without impacting the normal back navigation
flow.
Android 16 additionally adds the
finishAndRemoveTaskCallback()
and
moveTaskToBackCallback
. By registering these callbacks
with the OnBackInvokedDispatcher
, the system can trigger
specific behaviors and play corresponding ahead-of-time animations when the back
gesture is invoked.
बेहतर हैप्टिक
Android has exposed control over the haptic actuator ever since its inception.
Android 11 added support for more complex haptic effects that more advanced
actuators could support through
VibrationEffect.Compositions
of device-defined semantic
primitives.
Android 16 adds haptic APIs that let apps define the amplitude and frequency curves of a haptic effect while abstracting away differences between device capabilities.
डेवलपर की प्रोडक्टिविटी और टूल
आपकी प्रॉडक्टिविटी बढ़ाने के लिए, हम Android Studio, Jetpack Compose, और Android Jetpack लाइब्रेरी जैसे टूल पर काम करते हैं. हालांकि, हम हमेशा प्लैटफ़ॉर्म में ऐसे तरीके ढूंढते रहते हैं जिनसे आपको अपने लक्ष्य को हासिल करने में मदद मिल सके.
लाइव वॉलपेपर के लिए कॉन्टेंट मैनेज करना
In Android 16, the live wallpaper framework is gaining a new content API to
address the challenges of dynamic, user-driven wallpapers. Currently, live
wallpapers incorporating user-provided content require complex, service-specific
implementations. Android 16 introduces
WallpaperDescription
and
WallpaperInstance
. WallpaperDescription lets you
identify distinct instances of a live wallpaper from the same service. For
example, a wallpaper that has instances on both the home screen and on the lock
screen may have unique content in both places. The wallpaper picker and
WallpaperManager
use this metadata to better present
wallpapers to users, streamlining the process for you to create diverse and
personalized live wallpaper experiences.
परफ़ॉर्मेंस और बैटरी
Android 16 में ऐसे एपीआई शामिल किए गए हैं जिनकी मदद से, आपके ऐप्लिकेशन के बारे में अहम जानकारी इकट्ठा की जा सकती है.
सिस्टम से ट्रिगर की गई प्रोफ़ाइलिंग
ProfilingManager
को Android 15 में जोड़ा गया था. इससे ऐप्लिकेशन, फ़ील्ड में मौजूद सार्वजनिक डिवाइसों पर Perfetto का इस्तेमाल करके, प्रोफ़ाइलिंग डेटा इकट्ठा करने का अनुरोध कर सकते हैं.
हालांकि, यह प्रोफ़ाइलिंग ऐप्लिकेशन से शुरू की जानी चाहिए. इसलिए, ऐप्लिकेशन के लिए स्टार्टअप या ANR जैसे अहम फ़्लो को कैप्चर करना मुश्किल या असंभव होगा.
इसकी मदद करने के लिए, Android 16 में ProfilingManager
के लिए, सिस्टम से ट्रिगर की जाने वाली प्रोफ़ाइलिंग की सुविधा जोड़ी गई है. ऐप्लिकेशन, कुछ ट्रिगर के लिए ट्रेस पाने में दिलचस्पी रजिस्टर कर सकते हैं. जैसे, कोल्ड स्टार्ट reportFullyDrawn
या ANR. इसके बाद, सिस्टम ऐप्लिकेशन की ओर से ट्रेस शुरू और बंद करता है. ट्रैक पूरा होने के बाद, नतीजे ऐप्लिकेशन की डेटा डायरेक्ट्री में डिलीवर किए जाते हैं.
ApplicationStartInfo में कॉम्पोनेंट शुरू करना
ApplicationStartInfo
was added in Android
15, allowing an app to see reasons
for process start, start type, start times, throttling, and other useful
diagnostic data. Android 16 adds
getStartComponent()
to distinguish what component type triggered the start, which can be helpful for
optimizing the startup flow of your app.
नौकरी के बारे में बेहतर तरीके से जानकारी पाना
The JobScheduler#getPendingJobReason()
API returns a reason why a job
might be pending. However, a job might be pending for multiple reasons.
In Android 16, we are introducing a new API
JobScheduler#getPendingJobReasons(int jobId)
, which returns multiple
reasons why a job is pending, due to both explicit constraints set by the
developer and implicit constraints set by the system.
We're also introducing
JobScheduler#getPendingJobReasonsHistory(int jobId)
, which returns a list
of the most recent constraint changes.
We recommend using the API to help you debug why your jobs may not be executing, especially if you're seeing reduced success rates of certain tasks or have bugs around latency of certain job completion. For example, updating widgets in the background failed to occur or prefetch job failed to be called prior to app start.
This can also better help you understand if certain jobs are not completing due to system defined constraints versus explicitly set constraints.
अडैप्टिव रीफ़्रेश रेट
Adaptive refresh rate (ARR), introduced in Android 15, enables the display refresh rate on supported hardware to adapt to the content frame rate using discrete VSync steps. This reduces power consumption while eliminating the need for potentially jank-inducing mode-switching.
Android 16 introduces hasArrSupport()
and
getSuggestedFrameRate(int)
while restoring
getSupportedRefreshRates()
to make it easier for your apps to take
advantage of ARR. RecyclerView
1.4 internally supports ARR when it is settling from a fling or
smooth scroll, and we're continuing our work to add ARR
support into more Jetpack libraries. This frame rate article covers
many of the APIs you can use to set the frame rate so that your app can directly
use ARR.
ADPF में Headroom API
The SystemHealthManager
introduces the
getCpuHeadroom
and
getGpuHeadroom
APIs, designed to provide games and
resource-intensive apps with estimates of available CPU and GPU resources. These
methods offer a way for you to gauge how your app or game can best improve
system health, particularly when used in conjunction with other Android Dynamic
Performance Framework (ADPF) APIs that detect thermal
throttling.
By using CpuHeadroomParams
and
GpuHeadroomParams
on supported devices, you can
customize the time window used to compute the headroom and select between
average or minimum resource availability. This can help you reduce your CPU or
GPU resource usage accordingly, leading to better user experiences and improved
battery life.
सुलभता
Android 16 में, सुलभता से जुड़े नए एपीआई और सुविधाएं जोड़ी गई हैं. इनकी मदद से, हर उपयोगकर्ता के लिए अपना ऐप्लिकेशन उपलब्ध कराया जा सकता है.
सुलभता से जुड़े बेहतर एपीआई
Android 16 में यूज़र इंटरफ़ेस (यूआई) के सेमेटिक्स को बेहतर बनाने के लिए, अतिरिक्त एपीआई जोड़े गए हैं. इससे TalkBack जैसी सुलभता सेवाओं पर निर्भर उपयोगकर्ताओं के लिए, यूज़र इंटरफ़ेस को एक जैसा रखने में मदद मिलती है.
टेक्स्ट का कंट्रास्ट बढ़ाने के लिए, टेक्स्ट को आउटलाइन करना
कम विज़न वाले उपयोगकर्ताओं को अक्सर कंट्रास्ट की संवेदनशीलता कम होती है. इससे, ऑब्जेक्ट को उनके बैकग्राउंड से अलग करना मुश्किल हो जाता है. इन उपयोगकर्ताओं की मदद करने के लिए, Android 16 में आउटलाइन टेक्स्ट की सुविधा जोड़ी गई है. यह ज़्यादा कंट्रास्ट वाले टेक्स्ट की जगह लेती है. यह टेक्स्ट के चारों ओर, कंट्रास्ट वाला बड़ा हिस्सा बनाती है, ताकि टेक्स्ट को आसानी से पढ़ा जा सके.
Android 16 में नए AccessibilityManager
एपीआई शामिल हैं. इनकी मदद से, आपके ऐप्लिकेशन यह जांच कर सकते हैं कि यह मोड चालू है या नहीं. इसके अलावा, किसी लिसनर को रजिस्टर भी किया जा सकता है. यह मुख्य रूप से Compose जैसे यूज़र इंटरफ़ेस टूलकिट के लिए है, ताकि उनमें भी ऐसा ही विज़ुअल अनुभव दिया जा सके. अगर आपके पास यूज़र इंटरफ़ेस टूलकिट लाइब्रेरी है या आपका ऐप्लिकेशन, android.text.Layout
क्लास को बायपास करने वाला कस्टम टेक्स्ट रेंडर करता है, तो इस सुविधा का इस्तेमाल करके यह पता लगाया जा सकता है कि आउटलाइन टेक्स्ट कब चालू है.

TtsSpan में अवधि जोड़ी गई
Android 16 में TtsSpan
को TYPE_DURATION
के साथ जोड़ा गया है. इसमें ARG_HOURS
, ARG_MINUTES
, और ARG_SECONDS
शामिल हैं. इससे, वीडियो के दिखने का कुल समय सीधे तौर पर एनोटेट किया जा सकता है. इससे, TalkBack जैसी सेवाओं की मदद से, लिखाई को बोली में बदलने की सुविधा के सटीक और एक जैसे नतीजे मिलते हैं.
एक से ज़्यादा लेबल वाले एलिमेंट के साथ काम करना
फ़िलहाल, Android में यूज़र इंटरफ़ेस (यूआई) एलिमेंट को एक-दूसरे से, सुलभता लेबल पाने की अनुमति है. साथ ही, अब एक से ज़्यादा लेबल जोड़े जा सकते हैं. यह वेब कॉन्टेंट में आम तौर पर होता है. AccessibilityNodeInfo
में सूची पर आधारित एपीआई को शामिल करके, Android सीधे तौर पर इन कई लेबल वाले संबंधों का इस्तेमाल कर सकता है. इस बदलाव के तहत, हमने AccessibilityNodeInfo#setLabeledBy
और #getLabeledBy
को बंद कर दिया है. अब इनकी जगह #addLabeledBy
, #removeLabeledBy
, और #getLabeledByList
का इस्तेमाल किया जाएगा.
बड़ा किए जा सकने वाले एलिमेंट के लिए बेहतर सहायता
Android 16 में, सुलभता एपीआई जोड़े गए हैं. इनकी मदद से, इंटरैक्टिव एलिमेंट की स्थिति को बड़ा या छोटा किया जा सकता है. जैसे, मेन्यू और बड़ा की जा सकने वाली सूचियां. setExpandedState
का इस्तेमाल करके, बड़ा किया गया स्टेटस सेट करके और CONTENT_CHANGE_TYPE_EXPANDED
कॉन्टेंट में बदलाव के टाइप के साथ TYPE_WINDOW_CONTENT_CHANGED AccessibilityEvents भेजकर, यह पक्का किया जा सकता है कि TalkBack जैसे स्क्रीन रीडर, स्टेटस में हुए बदलावों की सूचना दें. इससे, उपयोगकर्ताओं को बेहतर और आसान अनुभव मिलता है.
प्रोग्रेस बार के लिए तय नहीं किया गया
Android 16 में RANGE_TYPE_INDETERMINATE
जोड़ा गया है. इससे, आपको ProgressBar
विजेट के लिए, RangeInfo
को दिखाने का विकल्प मिलता है. इसकी मदद से, TalkBack जैसी सेवाएं, प्रोग्रेस इंडिकेटर के लिए लगातार सुझाव दे सकती हैं.
तीन स्थितियों वाला चेकबॉक्स
Android 16 में, AccessibilityNodeInfo
getChecked
और setChecked(int)
के नए तरीकों का इस्तेमाल करके, अब "चुनी गई" और "चुनी नहीं गई" के अलावा, "कुछ हिस्से को चुना गया" स्थिति भी सेट की जा सकती है. यह, अब काम न करने वाले बूलियन isChecked
और setChecked(boolean)
फ़ंक्शन की जगह ले लेगा.
अतिरिक्त जानकारी
जब कोई सुलभता सेवा किसी ViewGroup
के बारे में बताती है, तो वह अपने ब्यौरे में उस व्यू के चाइल्ड व्यू के कॉन्टेंट लेबल को भी शामिल कर लेती है. अगर आपने ViewGroup
के लिए कोई contentDescription
दिया है, तो सुलभता सेवाएं यह मान लेती हैं कि आपने फ़ोकस नहीं किए जा सकने वाले चाइल्ड व्यू के ब्यौरे को भी बदल दिया है. अगर आपको सुलभता के लिए चुने गए मौजूदा विकल्प (उदाहरण के लिए, "Roboto") को बनाए रखते हुए, ड्रॉप-डाउन (उदाहरण के लिए, "फ़ॉन्ट फ़ैमिली") जैसी चीज़ों को लेबल करना है, तो समस्या आ सकती है. Android 16 में setSupplementalDescription
जोड़ा गया है, ताकि आप ViewGroup
के बारे में जानकारी देने वाला टेक्स्ट दे सकें. ऐसा करने पर, ViewGroup
के बच्चों की जानकारी बदली नहीं जाएगी.
फ़ॉर्म के ज़रूरी फ़ील्ड
Android 16 में, AccessibilityNodeInfo
में setFieldRequired
जोड़ा गया है, ताकि ऐप्लिकेशन किसी सुलभता सेवा को बता सकें कि फ़ॉर्म फ़ील्ड में इनपुट करना ज़रूरी है. यह कई तरह के फ़ॉर्म भरने वाले उपयोगकर्ताओं के लिए एक अहम स्थिति है. यहां तक कि ज़रूरी शर्तों वाले चेकबॉक्स जैसी आसान चीज़ों के लिए भी यह ज़रूरी है. इससे उपयोगकर्ताओं को ज़रूरी फ़ील्ड की पहचान करने और उनमें तेज़ी से नेविगेट करने में मदद मिलती है.
LEA कान की मशीनों के साथ वॉइस कॉल के लिए, फ़ोन को माइक्रोफ़ोन इनपुट के तौर पर इस्तेमाल करना
Android 16 adds the capability for users of LE Audio hearing aids to switch between the built-in microphones on the hearing aids and the microphone on their phone for voice calls. This can be helpful in noisy environments or other situations where the hearing aid's microphones might not perform well.
LEA कान की मशीनों के लिए, आस-पास की आवाज़ के हिसाब से वॉल्यूम कंट्रोल करने की सुविधा
Android 16 adds the capability for users of LE Audio hearing aids to adjust the volume of ambient sound that is picked up by the hearing aid's microphones. This can be helpful in situations where background noise is too loud or too quiet.
कैमरा
Android 16 में, प्रोफ़ेशनल कैमरे इस्तेमाल करने वाले लोगों के लिए बेहतर सुविधाएं जोड़ी गई हैं. इनमें, कलर टेंपरेचर और टिनट में सटीक बदलाव करने के साथ-साथ, हाइब्रिड ऑटो एक्सपोज़र की सुविधा भी शामिल है. नाइट मोड के नए इंडिकेटर की मदद से, आपके ऐप्लिकेशन को यह पता चलता है कि नाइट मोड वाले कैमरे सेशन पर कब स्विच करना है और कब उससे वापस आना है. Intent
के नए ऐक्शन की मदद से, मोशन फ़ोटो आसानी से कैप्चर की जा सकती हैं. साथ ही, हम HEIC एन्कोडिंग और ISO 21496-1 ड्राफ़्ट स्टैंडर्ड के नए पैरामीटर की मदद से, अल्ट्रा एचडीआर इमेज को बेहतर बना रहे हैं.
हाइब्रिड ऑटो एक्सपोज़र
Android 16 adds new hybrid auto-exposure modes to Camera2, allowing you to manually control specific aspects of exposure while letting the auto-exposure (AE) algorithm handle the rest. You can control ISO + AE, and exposure time + AE, providing greater flexibility compared to the current approach where you either have full manual control or rely entirely on auto-exposure.
fun setISOPriority() {
// ... (Your existing code before the snippet) ...
val availablePriorityModes = mStaticInfo.characteristics.get(
CameraCharacteristics.CONTROL_AE_AVAILABLE_PRIORITY_MODES
)
// ... (Your existing code between the snippets) ...
// Turn on AE mode to set priority mode
reqBuilder.set(
CaptureRequest.CONTROL_AE_MODE,
CameraMetadata.CONTROL_AE_MODE_ON
)
reqBuilder.set(
CaptureRequest.CONTROL_AE_PRIORITY_MODE,
CameraMetadata.CONTROL_AE_PRIORITY_MODE_SENSOR_SENSITIVITY_PRIORITY
)
reqBuilder.set(
CaptureRequest.SENSOR_SENSITIVITY,
TEST_SENSITIVITY_VALUE
)
val request: CaptureRequest = reqBuilder.build()
// ... (Your existing code after the snippet) ...
}
कलर टेंपरेचर और टिनट में सटीक बदलाव करना
Android 16 में कैमरे के लिए, कलर टेंपरेचर और टिनट में बदलाव करने की सुविधा जोड़ी गई है. इससे, प्रोफ़ेशनल वीडियो रिकॉर्डिंग ऐप्लिकेशन को बेहतर तरीके से काम करने में मदद मिलेगी. Android के पिछले वर्शन में, CONTROL_AWB_MODE
की मदद से व्हाइट बैलेंस की सेटिंग को कंट्रोल किया जा सकता था. इसमें पहले से तय की गई सूची में मौजूद विकल्प ही उपलब्ध होते थे. जैसे, इंकैंडेसेंट, बादल छाए होने पर, और शाम ढलते समय. COLOR_CORRECTION_MODE_CCT
, COLOR_CORRECTION_COLOR_TEMPERATURE
और COLOR_CORRECTION_COLOR_TINT
का इस्तेमाल करने की सुविधा देता है. इससे, कलर टेंपरेचर के आधार पर, व्हाइट बैलेंस को सटीक तरीके से अडजस्ट किया जा सकता है.
public void setCCT() {
...
Range<Integer> colorTemperatureRange =
mStaticInfo.getCharacteristics().get(CameraCharacteristics.
COLOR_CORRECTION_COLOR_TEMPERATURE_RANGE);
// Set to manual mode to enable CCT mode
reqBuilder.set(CaptureRequest.CONTROL_AWB_MODE, CameraMetadata.CONTROL_AWB_MODE_OFF);
reqBuilder.set(CaptureRequest.COLOR_CORRECTION_MODE,
CameraMetadata.COLOR_CORRECTION_MODE_CCT);
reqBuilder.set(CaptureRequest.COLOR_CORRECTION_COLOR_TEMPERATURE, 5000);
reqBuilder.set(CaptureRequest.COLOR_CORRECTION_COLOR_TINT, 30);
CaptureRequest request = reqBuilder.build();
...
}
नीचे दिए गए उदाहरणों से पता चलता है कि अलग-अलग रंग के तापमान और रंग में बदलाव करने के बाद, फ़ोटो कैसी दिखेगी:





कैमरे के नाइट मोड में सीन की पहचान करने की सुविधा
Android 16 में EXTENSION_NIGHT_MODE_INDICATOR
जोड़ा गया है. इससे आपके ऐप्लिकेशन को यह पता चलता है कि नाइट मोड वाले कैमरे के सेशन पर कब स्विच करना है और कब उससे बाहर निकलना है. अगर यह सुविधा काम करती है, तो यह Camera2 में CaptureResult
में उपलब्ध होगी.
यह वह एपीआई है जिसके बारे में हमने Instagram ने कम रोशनी में शानदार फ़ोटो लेने की सुविधा कैसे उपलब्ध कराई ब्लॉग पोस्ट में बताया था. इस पोस्ट में, रात मोड को लागू करने का तरीका बताया गया है. साथ ही, एक केस स्टडी भी दी गई है. इसमें, ऐप्लिकेशन में मौजूद कैमरे से शेयर की गई फ़ोटो की संख्या में बढ़ोतरी के साथ-साथ, ऐप्लिकेशन में मौजूद रात मोड की बेहतर क्वालिटी वाली फ़ोटो को जोड़ा गया है.
मोशन फ़ोटो कैप्चर करने के लिए इंटेंट ऐक्शन
Android 16 adds standard Intent actions —
ACTION_MOTION_PHOTO_CAPTURE
, and
ACTION_MOTION_PHOTO_CAPTURE_SECURE
— which request that
the camera application capture a motion photo and return
it.
You must either pass an extra EXTRA_OUTPUT
to control
where the image will be written, or a Uri
through
Intent.setClipData(ClipData)
. If you don't set a
ClipData
, it will be copied there for you when calling
Context.startActivity(Intent)
.
अल्ट्रा एचडीआर की मदद से इमेज को बेहतर बनाना

Android 16 में, हमने अल्ट्रा एचडीआर इमेज की मदद से बेहतरीन क्वालिटी वाली इमेज उपलब्ध कराने की सुविधा को जारी रखा है. इससे, HEIC फ़ाइल फ़ॉर्मैट में UltraHDR इमेज के लिए सहायता मिलती है. इन इमेज को ImageFormat
टाइप HEIC_ULTRAHDR
मिलेगा. साथ ही, इनमें मौजूदा UltraHDR JPEG फ़ॉर्मैट जैसा एम्बेड किया गया गेनमैप होगा. हम UltraHDR के लिए भी AVIF फ़ॉर्मैट की सुविधा उपलब्ध कराने पर काम कर रहे हैं. इसलिए, हमारे साथ बने रहें.
इसके अलावा, Android 16 में ISO 21496-1 ड्राफ़्ट स्टैंडर्ड के आधार पर, अल्ट्रा एचडीआर में कुछ और पैरामीटर लागू किए गए हैं. इनमें, गेनमैप के हिसाब से कलरस्पेस को सेट करने और उसे पाने की सुविधा शामिल है. साथ ही, एसडीआर गेनमैप के साथ एचडीआर में एन्कोड की गई बेस इमेज के लिए भी यह सुविधा काम करती है.
ग्राफ़िक्स
Android 16 में, ग्राफ़िक से जुड़े नए सुधार शामिल हैं. जैसे, AGSL की मदद से कस्टम ग्राफ़िक इफ़ेक्ट.
एजीएसएल की मदद से, पसंद के मुताबिक ग्राफ़िक इफ़ेक्ट
Android 16 adds RuntimeColorFilter
and
RuntimeXfermode
, allowing you to author complex effects like
Threshold, Sepia, and Hue Saturation and apply them to draw calls. Since Android
13, you've been able to use AGSL to create custom
RuntimeShaders that extend Shader
. The new API
mirrors this, adding an AGSL-powered RuntimeColorFilter
that
extends ColorFilter
, and a Xfermode
effect that
lets you implement AGSL-based custom compositing and blending between source and
destination pixels.
private val thresholdEffectString = """
uniform half threshold;
half4 main(half4 c) {
half luminosity = dot(c.rgb, half3(0.2126, 0.7152, 0.0722));
half bw = step(threshold, luminosity);
return bw.xxx1 * c.a;
}"""
fun setCustomColorFilter(paint: Paint) {
val filter = RuntimeColorFilter(thresholdEffectString)
filter.setFloatUniform(0.5);
paint.colorFilter = filter
}
कनेक्टिविटी
Android 16, प्लैटफ़ॉर्म को अपडेट करता है, ताकि आपके ऐप्लिकेशन को कम्यूनिकेशन और वायरलेस टेक्नोलॉजी से जुड़ी नई सुविधाओं का ऐक्सेस मिल सके.
बेहतर सुरक्षा के साथ रेंजिंग
Android 16 adds support for robust security features in Wi-Fi location on supported devices with Wi-Fi 6's 802.11az, allowing apps to combine the higher accuracy, greater scalability, and dynamic scheduling of the protocol with security enhancements including AES-256-based encryption and protection against MITM attacks. This allows it to be used more safely in proximity use cases, such as unlocking a laptop or a vehicle door. 802.11az is integrated with the Wi-Fi 6 standard, leveraging its infrastructure and capabilities for wider adoption and easier deployment.
सामान्य रेंजिंग एपीआई
Android 16 में नया RangingManager
शामिल है. इससे, लोकल डिवाइस और रिमोट डिवाइस के बीच की दूरी और कोण का पता लगाने के लिए, काम करने वाले हार्डवेयर पर तरीके मिलते हैं. RangingManager
, रेंजिंग की कई टेक्नोलॉजी का इस्तेमाल करता है. जैसे, बीएलई चैनल साउंडिंग, बीएलई आरएसएसआई पर आधारित रेंजिंग, अल्ट्रा वाइडबैंड, और वाई-फ़ाई राउंड ट्रिप टाइम.
मीडिया
Android 16 में कई सुविधाएं शामिल हैं, जिनसे मीडिया का अनुभव बेहतर होता है.
फ़ोटो पिकर में किए गए सुधार
फ़ोटो पिकर की सुविधा, उपयोगकर्ताओं के लिए ऐप्लिकेशन में पहले से मौजूद है. इसकी मदद से, उपयोगकर्ता अपने डिवाइस की पूरी मीडिया लाइब्रेरी के बजाय, ऐप्लिकेशन को सिर्फ़ अपनी चुनी हुई फ़ोटो और वीडियो का ऐक्सेस दे सकते हैं. यह सुविधा सुरक्षित है. Google के सिस्टम अपडेट और Google Play services की मदद से, मॉड्यूलर सिस्टम कॉम्पोनेंट का इस्तेमाल करके, यह सुविधा Android 4.4 (एपीआई लेवल 19) तक के वर्शन पर काम करती है. इंटिग्रेशन के लिए, Android Jetpack लाइब्रेरी के साथ सिर्फ़ कुछ लाइनों का कोड ज़रूरी है.
Android 16 में, फ़ोटो पिकर में ये सुधार किए गए हैं:
- एम्बेड किया गया फ़ोटो पिकर: नए एपीआई, जिनकी मदद से ऐप्लिकेशन, फ़ोटो पिकर को अपने व्यू की हैरारकी में एम्बेड कर सकते हैं. इससे, यह ऐप्लिकेशन के एक बेहतर हिस्से की तरह महसूस होता है. साथ ही, प्रोसेस को अलग रखने की सुविधा का फ़ायदा भी मिलता है. इस सुविधा की मदद से, उपयोगकर्ता ऐप्लिकेशन को ज़्यादा अनुमतियां दिए बिना ही मीडिया चुन सकते हैं. अगर आपको एम्बेड किए गए फ़ोटो पिकर को इंटिग्रेट करना है, तो आपको Android के आने वाले समय में लॉन्च होने वाली Jetpack लाइब्रेरी का इस्तेमाल करना होगा. इससे, सभी प्लैटफ़ॉर्म के वर्शन के साथ काम करने की सुविधा बढ़ेगी और इंटिग्रेशन आसान हो जाएगा.
- फ़ोटो पिकर में क्लाउड सर्च: Android फ़ोटो पिकर के लिए, क्लाउड मीडिया प्रोवाइडर से खोजने की सुविधा देने वाले नए एपीआई. फ़ोटो चुनने वाले टूल में खोजने की सुविधा जल्द ही उपलब्ध होगी.
बेहतर प्रोफ़ेशनल वीडियो
Android 16 introduces support for the Advanced Professional Video (APV) codec which is designed to be used for professional level high quality video recording and post production.
The APV codec standard has the following features:
- Perceptually lossless video quality (close to raw video quality)
- Low complexity and high throughput intra-frame-only coding (without pixel domain prediction) to better support editing workflows
- Support for high bit-rate range up to a few Gbps for 2K, 4K and 8K resolution content, enabled by a lightweight entropy coding scheme
- Frame tiling for immersive content and for enabling parallel encoding and decoding
- Support for various chroma sampling formats and bit-depths
- Support for multiple decoding and re-encoding without severe visual quality degradation
- Support multi-view video and auxiliary video like depth, alpha, and preview
- Support for HDR10/10+ and user-defined metadata
A reference implementation of APV is provided through the OpenAPV project. Android 16 will implement support for the APV 422-10 Profile that provides YUV 422 color sampling along with 10-bit encoding and for target bitrates of up to 2Gbps.
निजता
Android 16 में कई सुविधाएं शामिल हैं. इनकी मदद से, ऐप्लिकेशन डेवलपर उपयोगकर्ता की निजता को सुरक्षित रख सकते हैं.
Health Connect से जुड़े अपडेट
डेवलपर के लिए उपलब्ध झलक में, Health Connect में ACTIVITY_INTENSITY
डेटा टाइप जोड़ा गया है. यह एक नया डेटा टाइप है, जिसे विश्व स्वास्थ्य संगठन के निर्देशों के मुताबिक, सामान्य और ज़्यादा गतिविधि के आधार पर तय किया गया है. हर रिकॉर्ड के लिए, शुरू होने का समय, खत्म होने का समय, और गतिविधि की तीव्रता सामान्य या ज़्यादा मेहनत वाली होनी चाहिए.
Health Connect में, सेहत के रिकॉर्ड से जुड़े अपडेट किए गए एपीआई भी शामिल हैं. इससे ऐप्लिकेशन, उपयोगकर्ता की साफ़ तौर पर दी गई सहमति के साथ, FHIR फ़ॉर्मैट में मेडिकल रिकॉर्ड पढ़ और लिख सकते हैं. यह एपीआई, रिलीज़ होने से पहले इस्तेमाल करने का ऐक्सेस देने वाले कार्यक्रम में है. अगर आपको इसमें हिस्सा लेना है, तो रिलीज़ होने से पहले ऐप्लिकेशन इस्तेमाल करने की सुविधा देने वाले हमारे प्रोग्राम में शामिल होने के लिए साइन अप करें.
Android पर Privacy Sandbox
Android 16 incorporates the latest version of the Privacy Sandbox on Android, part of our ongoing work to develop technologies where users know their privacy is protected. Our website has more about the Privacy Sandbox on Android developer beta program to help you get started. Check out the SDK Runtime which allows SDKs to run in a dedicated runtime environment separate from the app they are serving, providing stronger safeguards around user data collection and sharing.
सुरक्षा
Android 16 में ऐसी सुविधाएं शामिल हैं जिनसे आपको अपने ऐप्लिकेशन की सुरक्षा को बेहतर बनाने और अपने ऐप्लिकेशन के डेटा को सुरक्षित रखने में मदद मिलती है.
पासकोड शेयर करने वाला एपीआई
Android 16 adds APIs that support sharing access to
Android Keystore keys with other apps. The new
KeyStoreManager
class supports
granting and revoking access to keys
by app uid, and includes an API for apps to access shared
keys.
डिवाइस के नाप या आकार
Android 16, आपके ऐप्लिकेशन को Android के फ़ॉर्मैट फ़ैक्टर का ज़्यादा से ज़्यादा फ़ायदा पाने में मदद करता है.
टीवी के लिए, पिक्चर और ऑडियो क्वालिटी का स्टैंडर्ड फ़्रेमवर्क
The new MediaQuality
package in Android 16 exposes
a set of standardized APIs for access to audio and picture profiles and
hardware-related settings. This allows streaming apps to query profiles and
apply them to media dynamically:
- Movies mastered with a wider dynamic range require greater color accuracy to see subtle details in shadows and adjust to ambient light, so a profile that prefers color accuracy over brightness may be appropriate.
- Live sporting events are often mastered with a narrow dynamic range, but are often watched in daylight, so a profile that preferences brightness over color accuracy can give better results.
- Fully interactive content wants minimal processing to reduce latency, and wants higher frame rates, which is why many TV's ship with a game profile.
The API allows apps to switch between profiles and users to enjoy tuning supported TVs to best suit their content.
इंटरनैशनलाइज़ेशन
Android 16 में ऐसी सुविधाएं और क्षमताएं जोड़ी गई हैं जिनसे डिवाइस को अलग-अलग भाषाओं में इस्तेमाल करने पर, उपयोगकर्ता अनुभव बेहतर होता है.
वर्टिकल टेक्स्ट
Android 16 adds low-level support for rendering and measuring text vertically to
provide foundational vertical writing support for library developers. This is
particularly useful for languages like Japanese that commonly use vertical
writing systems. A new flag,
VERTICAL_TEXT_FLAG
,
has been added to the Paint
class. When
this flag is set using
Paint.setFlags
, Paint's
text measurement APIs will report vertical advances instead of horizontal
advances, and Canvas
will draw text
vertically.
val text = "「春は、曙。」"
Box(
Modifier.padding(innerPadding).background(Color.White).fillMaxSize().drawWithContent {
drawIntoCanvas { canvas ->
val paint = Paint().apply { textSize = 64.sp.toPx() }
// Draw text vertically
paint.flags = paint.flags or VERTICAL_TEXT_FLAG
val height = paint.measureText(text)
canvas.nativeCanvas.drawText(
text,
0,
text.length,
size.width / 2,
(size.height - height) / 2,
paint
)
}
}
) {}
मेज़रमेंट सिस्टम को पसंद के मुताबिक बनाना
Users can now customize their measurement system in regional preferences within
Settings. The user preference is included as part of the locale code, so you can
register a BroadcastReceiver
on
ACTION_LOCALE_CHANGED
to handle locale configuration changes when
regional preferences change.
Using formatters can help match the local experience. For example, "0.5 in" in English (United States), is "12,7 mm" for a user who has set their phone to English (Denmark) or who uses their phone in English (United States) with the metric system as the measurement system preference.
To find these settings, open the Settings app and navigate to System > Languages & region.