Hướng dẫn từng bước về mẫu
Phần này giải thích về một số ứng dụng mẫu được cung cấp thông qua NDK. Phần này giả định rằng bạn đã có kiến thức thực hành về lập trình trong Java và mã gốc, đồng thời tập trung vào các vấn đề đặc thù khi làm việc với NDK.
Những mẫu sau được thảo luận:
- hello-jni: Một ứng dụng rất cơ bản minh hoạ hoạt động cốt lõi của NDK.
- native-activity (hoạt động gốc): Một ứng dụng trình bày những kiến thức cơ bản về cách tạo một ứng dụng gốc thuần tuý. Ứng dụng này đặc biệt tập trung vào thư viện android_native_app_glue.
- Teapot (Ấm trà): Bản minh hoạ OpenGL đơn giản, giới thiệu lớp
ndk_helper
.
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-05 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Translation issue"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Vấn đề về mẫu/mã"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]