Navigation SDK for Android のコードサンプル
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Navigation SDK for Android の GitHub のサンプル リポジトリには、SDK の使用方法を示すサンプルアプリが含まれています。アプリをインポートしてビルドし、API キーを追加してデモを表示し、提供されているサンプルコードをアプリの開始点として使用することができます。このリポジトリには 2 つのサンプルアプリが含まれています。
- MapView と NavView の UI のショーケースである Map-sample:
android-navigation-samples/map-sample/
- Navigation-sample、基本的なナビゲーション エクスペリエンス:
android-navigation-samples /navigation-sample/
サンプルアプリの実行の詳細については、デモを試すをご覧ください。
Navigation SDK for Android Codelab
シンプルな Android アプリを作成して Navigation SDK を使用する方法については、Navigation SDK for Android Codelab をご覧ください。この Codelab では、Kotlin を使用して SDK を実装する手順を説明します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-31 UTC。
[null,null,["最終更新日 2025-08-31 UTC。"],[[["\u003cp\u003eThe Navigation SDK for Android provides sample apps on GitHub that demonstrate the use of the SDK, allowing developers to import, build, and explore the code.\u003c/p\u003e\n"],["\u003cp\u003eThe repository features two key samples: "Map-sample" focusing on MapView and NavView UI, and "Navigation-sample" showcasing the core navigation experience.\u003c/p\u003e\n"],["\u003cp\u003eA dedicated Codelab offers a step-by-step guide to build a simple Android app using the Navigation SDK with Kotlin, aiding developers in practical implementation.\u003c/p\u003e\n"]]],[],null,["# Navigation SDK for Android code samples\n\nThe Navigation SDK for Android [samples repository on\nGitHub](https://github.com/googlemaps-samples/android-navigation-samples)\nincludes sample apps that demonstrate the use of the SDK. You can import and\nbuild the apps, add your API key, view the demo, and use the sample code\nsupplied as a starting point for your app. The repository contains two sample\napps:\n\n- **Map-sample** , a showcase of the MapView and NavView UI: `android-navigation-samples/map-sample/`\n- **Navigation-sample** , The fundamental navigation experience: `android-navigation-samples /navigation-sample/`\n\nFor more information about running the sample apps, see [Try the\ndemo](/maps/documentation/navigation/android-sdk/try-demo).\n\nNavigation SDK for Android Codelab\n----------------------------------\n\nTo learn how to use the Navigation SDK by building a simple Android app, see the\n[Navigation SDK for Android\nCodelab](https://codelabs.developers.google.com/codelabs/maps-platform/navigation-sdk-101-android).\nThe Codelab provides a step-by-step guide for implementing the SDK using Kotlin."]]