Codebeispiele für das Navigations-SDK für Android
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Das Beispiel-Repository für das Navigation SDK for Android auf GitHub enthält Beispiel-Apps, die die Verwendung des SDK veranschaulichen. Sie können die Apps importieren und erstellen, Ihren API-Schlüssel hinzufügen, sich die Demo ansehen und den bereitgestellten Beispielcode als Ausgangspunkt für Ihre App verwenden. Das Repository enthält zwei Beispiel-Apps:
- Map-sample, eine Demonstration der Benutzeroberfläche von MapView und NavView:
android-navigation-samples/map-sample/
- Navigation-sample: Die grundlegende Navigation:
android-navigation-samples /navigation-sample/
Weitere Informationen zum Ausführen der Beispiel-Apps finden Sie unter Demo ausprobieren.
Codelab zum Navigation SDK for Android
Informationen zur Verwendung des Navigation SDK zum Erstellen einer einfachen Android-App finden Sie im Navigation SDK for Android-Codelab.
Das Codelab bietet eine Schritt-für-Schritt-Anleitung zur Implementierung des SDK mit Kotlin.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-08-31 (UTC).
[null,null,["Zuletzt aktualisiert: 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."]]