非推奨のサービスと機能
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
リリースのたびに、特定の Android API が古くなったり、デベロッパー エクスペリエンスの向上や新しいプラットフォーム機能のサポートを目的としたリファクタリングが必要になったりすることがあります。このような場合、Android は古くなった API のサポートを正式に終了し、代わりに代替 API を使用するようデベロッパーに案内します。
サポートの終了とは、API の正式なサポートが終了したことを指しますが、デベロッパーは引き続きそうした API を利用できます。このページでは、Android の今回のリリースでサポートが終了した API をいくつか紹介します。その他のサポートの終了については、API の差分レポートをご覧ください。
Virtualizer ではなく Spatializer を使用する
Android 12(API レベル 32)で初めて追加された Spatializer
クラスを使用すると、アプリはデバイス上の音声空間化の機能と動作をクエリできます。Android 15 では、Virtualizer
クラスのサポートが終了しました。代わりに AudioAttributes.Builder.setSpatializationBehavior
を使用して、空間化がサポートされている場合にコンテンツを再生する方法を指定します。
AndroidX media3 ExoPlayer 1.0 では、デバイスが対応している場合、マルチチャンネル オーディオで空間オーディオがデフォルトで有効になります。機能の制御に使用する API など、詳細については、こちらの最新のブログ投稿と空間オーディオのドキュメントをご覧ください。
Android WebView で WebSQL のサポートが終了
WebSettings
の setDatabaseEnabled
メソッドと getDatabaseEnabled
メソッドのサポートは終了しました。これらの設定によりサポートが有効になりました
おすすめしますWebSQL は Chrome では削除され、Android WebView ではサポートが終了しました。これらのメソッドは、リリースされるすべての Android バージョンで NoOps となります。
今後 12 か月です
World Wide Web Consortium(W3C)は、
Web Storage API を導入するためにウェブ データベースを必要とするアプリ
テクノロジー(localStorage など)
sessionStorage、または
IndexedDB。オリジンのプライベート ファイル システムを基盤とするブラウザの SQLite Wasm では、SQLite データベースに基づく代替テクノロジーのセットについて説明します。このテクノロジーは、Web Assembly(Wasm)にコンパイルされ、オリジンのプライベート ファイル システムを基盤としており、WebSQL コードの直接移行を可能にします。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-08-27 UTC。
[null,null,["最終更新日 2025-08-27 UTC。"],[],[],null,["With each release, specific Android APIs might become obsolete or need to be\nrefactored to provide a better developer experience or support new platform\ncapabilities. In these cases, we officially deprecate the obsolete APIs and\ndirect developers to alternative APIs to use instead.\n\nDeprecation means that we've ended official support for the APIs, but they will\ncontinue to remain available to developers. This page highlights some of the\nnotable deprecations in this release of Android. To see other deprecations,\nrefer to the [API diff report](/sdk/api_diff/35/changes).\n\nUse Spatializer instead of Virtualizer\n\nFirst added in Android 12 (API level 32), the [`Spatializer`](/reference/android/media/Spatializer)\nclass lets apps query the capabilities and behavior of sound spatialization on\nthe device. In Android 15, the [`Virtualizer`](/reference/android/media/audiofx/Virtualizer) class is\ndeprecated. Use\n[`AudioAttributes.Builder.setSpatializationBehavior`](/reference/android/media/AudioAttributes.Builder#setSpatializationBehavior(int)) instead\nto characterize how you want your content to be played when spatialization is\nsupported.\n\nAndroidX media3 ExoPlayer 1.0 enables spatial audio by default for multichannel\naudio when the device supports it. See this\n[recent blog post](https://android-developers.googleblog.com/2023/04/delivering-immersive-sound-experience-with-spatial-audio.html) and the\n[spatial audio documentation](/media/grow/spatial-audio#exoplayer) for more information, including\nAPIs to control the feature.\n\nWebSQL deprecated in Android WebView\n\nThe [`setDatabaseEnabled`](/reference/android/webkit/WebSettings#setDatabaseEnabled(boolean)) and [`getDatabaseEnabled`](/reference/android/webkit/WebSettings#getDatabaseEnabled())\nmethods from `WebSettings` are now deprecated. These settings activated support\nfor WebSQL inside Webview. WebSQL is now removed in Chrome and is now deprecated\non Android Webview. These methods will become a no-op on all Android versions in\nthe next 12 months.\n\nThe World Wide Web Consortium (W3C) [encourages](https://www.w3.org/TR/webdatabase/#:%7E:text=The%20Web%20Applications%20Working%20Group%20continues%20work%20on%20two%20other%20storage%2Drelated%20specifications%3A%20Web%20Storage%20and%20Indexed%20Database%20API.)\napps needing web databases to adopt [Web Storage API](https://developer.mozilla.org/docs/Web/API/Web_Storage_API)\ntechnologies like [localStorage](https://developer.mozilla.org/docs/Web/API/Window/localStorage)\nand [sessionStorage](https://developer.mozilla.org/docs/Web/API/Window/sessionStorage), or\n[IndexedDB](https://developer.mozilla.org/docs/Web/API/IndexedDB_API/Using_IndexedDB). [SQLite Wasm in the browser backed by the\nOrigin Private File System](https://developer.chrome.com/blog/sqlite-wasm-in-the-browser-backed-by-the-origin-private-file-system)\noutlines a replacement set of technologies based on the\n[SQLite](https://sqlite.org/) database,\n[compiled to Web Assembly](https://sqlite.org/wasm) (Wasm), and backed by the\n[origin private file system](https://developer.mozilla.org/docs/Web/API/File_System_Access_API#origin_private_file_system)\nto enable more [direct migration](https://developer.chrome.com/blog/from-web-sql-to-sqlite-wasm/)\nof WebSQL code."]]