モバイルアプリ特有の機能の 1 つとして、位置認識があります。モバイル ユーザーは、どこに行くときでも必ずデバイスを携帯します。アプリに位置認識機能を追加することで、コンテキストに応じたユーザー エクスペリエンスを提供できるようになります。Google Play 開発者サービス内で利用できる位置情報 API を使用することで、位置情報の自動追跡、通りの反対側の検出、ジオフェンス、アクティビティ認識など、位置認識機能をアプリに追加できます。

開発リソース

アプリの機能のユースケースに応じて、権限の宣言とリクエストを行います。
融合型位置予測プロバイダを使用して、適切な位置情報をユーザーに提供します。
ユーザー デバイスのバッテリー効率を改善します。バックグラウンド位置情報の制限に関するガイドラインを遵守してください。
面白い場所を地図上にプロットします。また、地図上に表示するものをユーザーが指定できるようにします。

最新のニュース

Device orientation, or attitude, is used as an input signal for many use cases: virtual or augmented reality, gesture detection, or compass and navigation – any time the app needs the orientation of a device in relation to its surroundings. We’ve

Welcome to Now in Android, your ongoing guide to what’s new and notable in the world of Android development. Today, we’re covering updates from the top three things in Google Play at I/O 2023, Pixel Fold and Pixel Tablet, AndroidX releases, what it

At Android, we want to make it as easy as possible for developers to create the most helpful apps for their users. That’s why we aim to provide the best location experience with our APIs like the Fused Location Provider API (FLP). However, we’ve

Today, we’re unwrapping the Beta release for Android 11 as well as the latest updates for developers from Kotlin coroutines, to progress on the Jetpack Compose toolkit, to faster builds in Android Studio, even a refreshed experience for the Play

参考情報

アプリ内で位置情報へのアクセスをリクエストする方法については、以下の参考リンクをご覧ください。

サンプル

位置情報サンプルは Android OS プラットフォーム サンプルの一部です。 Android OS プラットフォーム サンプルの位置情報モジュールを参照し、サンプルの実行方法の手順に沿って操作してください。
位置情報の利用許可をリクエストする際のおすすめの方法を示すためのサンプル。
ユーザーの現在地を取得するためのベスト プラクティスを示すためのサンプル。
位置情報の更新を受信するためのベスト プラクティスを示すためのサンプル。
アプリがバックグラウンドで動作しているときに、位置情報にアクセスする方法、または位置情報の更新を受信する方法を示すためのサンプル。
ジオフェンスを作成してモニタリングする方法を示すためのサンプル。
ユーザー操作の認識のベスト プラクティスを示すためのサンプル。