範例:總覽
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
歡迎查看 NDK 範例部分。您可以在此下載各種範例應用程式,藉此提升您對 NDK 的瞭解。
NDK 範例
您可以從這個頁面下載 NDK 範例,藉此瞭解 NDK 的實際執行情況,這些範例涵蓋以下主題:
- 管理原生應用程式的活動生命週期。
- 在 Android 裝置上使用原生 OpenGL。
- 實作原生音訊。
- 匯出模組。
Vulkan 範例
Vulkan 範例存放在與 NDK 其餘範例不同的位置。如要查看這些範例,請點選下方連結。
Google Play 遊戲範例
Google Play 遊戲服務 C++ SDK 範例說明在建構 Android 應用程式時如何使用這些服務。如要查看這些範例,請點選下方連結。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[[["容易理解","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 (世界標準時間)。"],[],[],null,["# Samples: Overview\n\nWelcome to the NDK samples area. Here, you can download a variety of sample\napps to help deepen your understanding the NDK.\n\nNDK Samples\n-----------\n\nFrom this page, you can download samples that provide a look at the NDK in action. A few of the\ntopics covered are:\n\n- Managing your native app's activity lifecycle.\n- Using native OpenGL on an Android device.\n- Implementing native audio.\n- Exporting modules.\n\n[Browse NDK samples on GitHub](https://github.com/android/ndk-samples/tree/main)\n\nVulkan Samples\n--------------\n\nVulkan samples are located separately from those for the rest of the NDK. To explore these\nsamples, click on the link below. \n[Browse Vulkan samples on GitHub](https://github.com/LunarG/VulkanSamples)\n\nGoogle Play Games Samples\n-------------------------\n\nThe Google Play games services C++ SDK samples illustrate how to use these services when building\nyour Android apps. To explore these samples, click on the link below. \n[Browse Google Play Games C++ SDK samples on GitHub](https://github.com/playgameservices/cpp-android-basic-samples)"]]