サンプルアプリ
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このセクションでは、NDK に付属しているいくつかのサンプルアプリについて説明します。Java とネイティブ コードでのプログラミングに関する実践的な知識をすでにお持ちであることを前提としています。ここでは、NDK の操作に固有の問題に焦点を当てています。
説明するサンプルは次のとおりです。
- hello-jni: NDK の中核的な機能を紹介するためのごく基本的なアプリ。
- native-activity: 純粋なネイティブ アプリを開発する基本的な方法を紹介するためのアプリ。android_native_app_glue ライブラリに特に重点を置いています。
- Teapot:
ndk_helper
クラスについて紹介するための簡単な OpenGL デモ。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-26 UTC。
[[["わかりやすい","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 UTC。"],[],[],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."]]