アプリによる動作変更の処理方法をテストする
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Wear OS 5 は Android 14(API レベル 34)をベースとしています。試験の準備には、
Wear OS 5 で使用する Wear OS アプリ、システムを処理する
Android 14 のすべてのアプリに影響する動作変更と、
Android 14 をターゲットとするアプリ向けの変更をご覧ください。
すべてのアプリに影響する Wear OS 5 の変更点
以下の動作変更は、特定のユースケースとライブラリに影響します。
Wear OS 向け。これらの変更は、Wear OS 5 以降で実行されるすべてのアプリに影響します。
常に同じです
プライバシー ダッシュボード
Wear OS 5 では、プライバシー ダッシュボードのサポートが追加されています。
各アプリのデータ使用状況を 1 か所で確認できるようにしました。
新しいスマートウォッチには、Watch Face Format を使用するウォッチフェイスのみが表示されます
Wear OS 5 以降を搭載してリリースされるスマートウォッチは、
Watch Face Format を使用します。このため、Google Workspace の
Watch Face Format で表示されます。
Android 14 をターゲットとするアプリに影響する Wear OS 5 の変更点
以下の変更は、ターゲット SDK を更新した場合にのみアプリに影響します
Wear OS 5 のベースとなるバージョンである Android 14 に移行してください。
常時オンアプリをバックグラウンドに移動できます
Wear OS 5 以降では、システムにより常時オンアプリがバックグラウンドに移動
アンビエント モードで一定時間表示された後。ユーザーができること
システム設定でタイムアウトを構成します。
エクササイズ記録アプリでは、フォアグラウンド サービスのタイプを申告する必要があります
アプリがユーザーのワークアウト セッションの一環としてエクササイズを記録する場合、
Wear OS 5 以降を搭載している場合は、
フォアグラウンド サービスの health
フォアグラウンド サービス タイプを指定します。
ExerciseClient
を呼び出します。また、アプリが位置情報を監視できる場合は、
location
も指定する必要があります。
フォアグラウンド サービスのタイプ。
一部の手首を外したデバイスのロック解除時間が長くなる
Wear OS 5 以降を搭載する対応デバイスで、ユーザーが手首をオフにした場合
デバイスを手首から外すと、
システムがデバイスのロック解除を長時間維持する
できません。
アプリの表示中に高いレベルのセキュリティが
機密情報や個人情報の可能性があるデータ—手首検出が有効かどうかを確認します。
ドラッグ可能なコンテンツがシステム ジェスチャーの起動ポイントと重なることがある
Wear OS 5 以降では、システムがモーション イベント ジェスチャーを処理します。
ジェスチャー ナビゲーションとは別に開発されました。
アプリの UI に、システム ジェスチャーと重なった大きなドラッグ可能なスペースがある場合
システム ジェスチャーの除外用の長方形を追加する
できます。そのためには、setSystemGestureExclusionRects()
を呼び出して、
システム UI を変更することで、特定のエリアでナビゲーション操作を無視します。例:
モバイルアプリで競合するアプリ ジェスチャーを処理して、
実現されています。
setSystemGestureExclusionRects()
API を使用すると、システム UI を取得できます。
動作リクエストに対するレスポンスが異なります。たとえば、システム UI に
追加の UI ヒント(水平バーなど)を表示してユーザーの意図を確認します。
暗黙的インテントとペンディング インテントの制限
アプリでタイルを使用している場合は、
暗黙的インテントとペンディング インテントに対する制限の影響を受けます。
一部の通知がまだ閉じることができない
Android 14 を搭載したデバイスでハンドヘルド バージョンのアプリを使用する場合
(API レベル 34)以降では、ユーザーは通知を非表示にできます。
閉じることができませんでした。
ただし、Wear OS 5 以降では、これらの通知を閉じることができません。
Android 14 からのその他の変更
Android 14 の以下の変更により、Wear OS が影響を受ける可能性があります
。
すべてのアプリに影響する Android 14 の変更
API レベル 34 をターゲットとするアプリに影響する Android 14 の変更
あなたへのおすすめ
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[null,null,["最終更新日 2025-07-27 UTC。"],[],[],null,["# Test how your app handles behavior changes\n\nWear OS 5 is based on Android 14 (API level 34). When you prepare your\nWear OS app for use on Wear OS 5, handle the system\n[behavior changes that affect all apps in Android 14](/about/versions/14/behavior-changes-all), as well as the\n[changes for apps that target Android 14](/about/versions/14/behavior-changes-14).\n| **Caution:** Before you upload your app to the Play Store, [target Android 14](/training/wearables/versions/5/update-target-sdk) and [configure an emulator](/training/wearables/get-started/creating#configure-emulator) to test your app.\n\nWear OS 5 changes affecting all apps\n------------------------------------\n\nThe following behavior changes affect use cases and libraries that are specific\nto Wear OS. These changes affect all apps that run on Wear OS 5 or higher,\nregardless of target SDK version.\n\n### Privacy dashboard\n\nWear OS 5 adds support for the [privacy dashboard](/training/wearables/principles#privacy-dashboard), which offers\nusers a centralized view of each app's data usage.\n\n### New watches only show watch faces that use Watch Face Format\n\nWatches that launch with Wear OS 5 or higher only support watch faces that use\nthe [Watch Face Format](/training/wearables/wff). For this reason, we recommend that you migrate to\nusing the Watch Face Format.\n\nWear OS 5 changes affecting apps that target Android 14\n-------------------------------------------------------\n\nThe following changes affect your app only if you [update your target SDK\nversion to Android 14](/training/wearables/versions/5/update-target-sdk), the version on which Wear OS 5 is based.\n\n### Always-on apps can move to the background\n\nStarting in Wear OS 5, the [system moves always-on apps to the background](/training/wearables/always-on#background)\nafter they're visible in ambient mode for a certain period of time. Users can\nconfigure the timeout in system settings.\n\n### Exercise-recording apps must declare a foreground service type\n\nIf your app records exercise as part of a user's workout session on devices that\nrun Wear OS 5 or higher, you must\n[specify the `health` foreground service type](/health-and-fitness/guides/health-services/active-data#structure) in the foreground service that\ninvokes [`ExerciseClient`](/reference/kotlin/androidx/health/services/client/ExerciseClient). Additionally, if your app can monitor location\ninformation during the workout session, you must also specify the `location`\nforeground service type.\n\n### Some off-wrist devices stay unlocked longer\n\nOn supported devices that run Wear OS 5 or higher, if the user turns off wrist\ndetection and then takes the device off of their wrist, the\n[system keeps the device unlocked for a longer period of time](/training/wearables/apps/auth-wear#device-unlocked-longer) than it would\notherwise.\n\nIf your app requires a higher level of security---such as when displaying\npotentially sensitive or private data---check whether wrist detection is enabled.\n\n### Draggable content might overlap system gesture activation points\n\nStarting in Wear OS 5, the system treats motion event gestures\nseparately from gesture navigation used in the system's UI.\n\nIf your app's UI includes large draggable spaces that overlap system gesture\nareas, you might need to add system gesture exclusion rectangles for these\nviews. To do so, call [`setSystemGestureExclusionRects()`](/reference/android/view/View#setSystemGestureExclusionRects(java.util.List%3Candroid.graphics.Rect%3E)) to instruct the\nsystem UI to ignore navigation gestures in the given areas. This is similar to\nhow you [handle conflicting app gestures](/develop/ui/views/touch-and-input/gestures/gesturenav#conflicting-gestures) in your mobile app to provide an\nedge-to-edge UI experience.\n\nYou can use the `setSystemGestureExclusionRects()` API to have the system UI\nrespond to gesture requests differently. For example, the system UI might show\nadditional UI hints, like a horizontal bar, to confirm the user's intent.\n\n### Restrictions to implicit and pending intents\n\nIf you use [tiles](/training/wearables/tiles) in your app, check whether your\nintents are affected by the [restrictions to implicit and pending intents](/about/versions/14/behavior-changes-14#safer-intents).\n\n### Some notifications are still non-dismissible\n\nWhen using the handheld version of your app on a device that runs Android 14\n(API level 34) or higher, [users can dismiss notifications](/about/versions/14/behavior-changes-all#non-dismissable-notifications) that, on\nprevious versions, were non-dismissible.\n\nOn Wear OS 5 and higher, however, these notifications are still non-dismissible.\n\nOther changes from Android 14\n-----------------------------\n\nThe following changes from Android 14 are most likely to affect your Wear OS\napp.\n\n### Android 14 changes that affect all apps\n\n- [Schedule exact alarms are denied by default](/about/versions/14/behavior-changes-all#schedule-exact-alarms)\n- [Context-registered broadcasts are queued while apps are cached](/about/versions/14/behavior-changes-all#pending-broadcasts-queued)\n- [Additional reason an app can be placed in the restricted standby\n bucket](/about/versions/14/behavior-changes-all#triggers-to-restricted-bucket)\n\n### Android 14 changes that affect apps targeting API level 34\n\n- [Foreground service types are required](/about/versions/14/behavior-changes-14#fgs-types)\n- [Non-linear font scaling](/about/versions/14/features#non-linear-font-scaling) (only affects view-based UI elements)\n- [Enforcement of `BLUETOOTH_CONNECT` permission in `BluetoothAdapter`](/about/versions/14/behavior-changes-14#enforce-bluetooth_connect)\n- [`JobScheduler` reinforces callback and network behavior](/about/versions/14/behavior-changes-14#jobscheduler-reinforces-behavior)\n- [Runtime-registered broadcasts receivers must be explicitly exported or not\n exported](/about/versions/14/behavior-changes-14#runtime-receivers-exported)\n- [Safer dynamic code loading](/about/versions/14/behavior-changes-14#safer-dynamic-code-loading)\n- [Additional restrictions on starting activities from the background](/about/versions/14/behavior-changes-14#background-activity-restrictions)\n- [User can grant partial access to photos and videos](/about/versions/14/behavior-changes-14#partial-photo-library-access)\n\nRecommended for you\n-------------------\n\n- Note: link text is displayed when JavaScript is off\n- [Privacy changes in Android 10](/about/versions/10/privacy/changes)\n- [Connect to a GATT server {:#connect}](/develop/connectivity/bluetooth/ble/connect-gatt-server)\n- [Communicate in the background](/develop/connectivity/bluetooth/ble/background)"]]