範例:總覽
歡迎查看 NDK 範例部分。您可以在此下載各種範例應用程式,藉此提升您對 NDK 的瞭解。
NDK 範例
您可以從這個頁面下載 NDK 範例,藉此瞭解 NDK 的實際執行情況,這些範例涵蓋以下主題:
- 管理原生應用程式的活動生命週期。
- 在 Android 裝置上使用原生 OpenGL。
- 實作原生音訊。
- 匯出模組。
Vulkan 範例
Vulkan 範例存放在與 NDK 其餘範例不同的位置。如要查看這些範例,請點選下方連結。
Google Play 遊戲範例
Google Play 遊戲服務 C++ SDK 範例說明在建構 Android 應用程式時如何使用這些服務。如要查看這些範例,請點選下方連結。
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-05-04 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]