範例逐步操作說明
本節介紹幾個 NDK 提供的範例應用程式,並假設您已具備 Java 與原生程式碼程式設計的工作知識。另外,當中的內容會重點介紹在使用 NDK 時會遇到的問題。
具體介紹的範例如下所示:
- hello-jni:一款非常基本的應用程式,用於說明 NDK 的核心工作。
- native-activity:用於提供純原生應用程式建構方法的基礎知識的應用程式,此應用程式會著重介紹 android_native_app_glue 程式庫。
- Teapot:用於展示
ndk_helper
類別的簡單 OpenGL 示範。
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":"其他"
}]