Navigation SDK for Android 程式碼範例
GitHub 上的 Navigation SDK for Android 範例存放區包含示範 SDK 用法的應用程式範例。您可以匯入及建構應用程式、新增 API 金鑰、查看示範,以及使用隨附的程式碼範例著手建構應用程式。存放區內含兩個應用程式範例:
- Map-sample,展示 MapView 和 NavView UI:
android-navigation-samples/map-sample/
- Navigation-sample,基本導覽體驗:
android-navigation-samples /navigation-sample/
如要進一步瞭解如何執行範例應用程式,請參閱「試用示範」。
Navigation SDK for Android 程式碼實驗室
如要瞭解如何透過建構簡單的 Android 應用程式使用 Navigation SDK,請參閱 Android 版 Navigation SDK 程式碼研究室。本程式碼研究室提供逐步指南,說明如何使用 Kotlin 實作 SDK。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-06-29 (世界標準時間)。
[null,null,["上次更新時間:2025-06-29 (世界標準時間)。"],[[["The 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."],["The repository features two key samples: \"Map-sample\" focusing on MapView and NavView UI, and \"Navigation-sample\" showcasing the core navigation experience."],["A 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."]]],[]]