示例演示
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本部分将介绍 NDK 随附的几个示例应用。它假定您已掌握一定的 Java 和原生代码编程知识,并重点介绍在使用 NDK 时遇到的特定问题。
本部分将讨论下列示例:
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):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"]],["最后更新时间 (UTC):2025-07-26。"],[],[],null,["# Sample Walkthroughs\n\nThis section explains several of the sample apps provided with the NDK. It assumes that you already have a working knowledge of programming in Java and native code, and focuses on issues particular to working with the NDK.\n\nIt discusses the following samples:\n\n- [hello-jni](./md_2__samples_sample--hellojni.html): A very basic app that illustrates core workings of the NDK.\n- [native-activity](./md_2__samples_sample--nativeactivity.html): An app that shows the fundamentals of how to construct a purely native app. It places particular emphasis on the android_native_app_glue library.\n- [Teapot](./md_2__samples_samples-teapot.html): A simple OpenGL demo, showcasing the `ndk_helper` class."]]