センサーと位置情報について
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Android 搭載デバイスには、周囲に関するコンテキスト情報(位置認識、動き、位置、物理環境の状態など)をユーザーに提供できるセンサーが搭載されています。
より豊富でコンテキスト固有のエクスペリエンスをユーザーに提供するには、次のタイプのセンサーを利用する Android API を使用します。
GPS を使用すると、自動位置情報トラッキング、通りの反対側の検出、ジオフェンス、アクティビティ認識など、位置認識をアプリに追加できます。
モーション センサーを使用して、3 軸に沿った加速度力と回転力を測定します。このカテゴリには、加速度計、重力センサー、ジャイロスコープ、回転ベクトル センサーが含まれます。
位置センサーを使用して、デバイスの物理的な位置を測定します。このカテゴリには、方向センサーや磁力計が含まれます。
環境センサーを使用して、周囲の気温や気圧、照明、湿度などのさまざまな環境パラメータを測定します。このカテゴリには、気圧計、光度計、温度計が含まれます。
動画
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-26 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-26 UTC。"],[],[],null,["# About sensors and location\n\nAndroid-powered devices have sensors that let you provide users with contextual\ninformation about their surroundings, including location awareness, motion,\nposition, and qualities of the physical environment.\n\nTo provide a much richer, more more context-specific experience for users, use\nAndroid APIs that take advantage of the following types of sensors:\n\n- Use [GPS](/develop/sensors-and-location/location) to add location awareness to your app with automated location\n tracking, wrong-side-of-the-street detection, geofencing, activity\n recognition, and more.\n\n- Use [motion sensors](/develop/sensors-and-location/sensors/sensors_motion) to measure acceleration forces and rotational forces\n along three axes. This category includes accelerometers, gravity sensors,\n gyroscopes, and rotational vector sensors.\n\n- Use [position sensors](/develop/sensors-and-location/sensors/sensors_position) to measure the physical position of a device. This\n category includes orientation sensors and magnetometers.\n\n- Use [environmental sensors](/develop/sensors-and-location/sensors/sensors_environment) to measure various environmental parameters,\n such as ambient air temperature and pressure, illumination, and humidity.\n This category includes barometers, photometers, and thermometers.\n\nVideos\n------"]]