יכול להיות שבכל גרסה חדשה, ממשקי API ספציפיים של Android יהפכו ללא רלוונטיים או שיצטרכו לעבור שינוי כדי לשפר את חוויית הפיתוח או לתמוך ביכולות חדשות של הפלטפורמה. במקרים כאלה, אנחנו מוציאים רשמית משימוש את ממשקי ה-API שיצאו משימוש ומפנים את המפתחים לממשקי API חלופיים שבהם הם יכולים להשתמש במקום זאת.
הוצאה משימוש פירושה שהפסקנו את התמיכה הרשמית בממשקי ה-API, אבל הם ימשיכו להיות זמינים למפתחים. בדף הזה מפורטים חלק מההוצאות משימוש שחשוב להכיר במהדורה הזו של Android. כדי לראות הוצאות משימוש אחרות, אפשר לעיין בדוח ההבדלים בין גרסאות ה-API.
שימוש ב-Spatializer במקום ב-Virtualizer
First added in Android 12 (API level 32), the Spatializer
class lets apps query the capabilities and behavior of sound spatialization on
the device. In Android 15, the Virtualizer
class is
deprecated. Use
AudioAttributes.Builder.setSpatializationBehavior
instead
to characterize how you want your content to be played when spatialization is
supported.
AndroidX media3 ExoPlayer 1.0 enables spatial audio by default for multichannel audio when the device supports it. See this recent blog post and the spatial audio documentation for more information, including APIs to control the feature.
הוצאה משימוש של WebSQL ב-Android WebView
The setDatabaseEnabled
and getDatabaseEnabled
methods from WebSettings
are now deprecated. These settings activated support
for WebSQL inside Webview. WebSQL is now removed in Chrome and is now deprecated
on Android Webview. These methods will become a no-op on all Android versions in
the next 12 months.
The World Wide Web Consortium (W3C) encourages apps needing web databases to adopt Web Storage API technologies like localStorage and sessionStorage, or IndexedDB. SQLite Wasm in the browser backed by the Origin Private File System outlines a replacement set of technologies based on the SQLite database, compiled to Web Assembly (Wasm), and backed by the origin private file system to enable more direct migration of WebSQL code.