am f7883698: Merge "Docs: Samples-tab material for NDK minisite." into mnc-preview-docs

* commit 'f7883698e19eafd678dfdb2af5a470b30f5153c8':
  Docs: Samples-tab material for NDK minisite.
This commit is contained in:
David Friedman
2015-05-27 22:14:05 +00:00
committed by Android Git Automerger
8 changed files with 37 additions and 45 deletions

View File

@@ -1,24 +0,0 @@
page.title=Samples: Downloads
@jd:body
<style>
.landing-button {
min-width: 155px;
text-align: center;
}
</style>
<p>From this page, you can download samples that provide a look at the NDK in action. A few of the
topics covered are:</p>
<ul>
<li>Managing your native app's activity lifecycle.</li>
<li>Using native OpenGL on an Android device.</li>
<li>Implementing native audio.</li>
<li>Exporting modules.</li>
</ul>
<p class="landing-button landing-secondary"><a href="{@docRoot}ndk/samples/samples_download.zip">Download the NDK Samples</a>
</p>

View File

@@ -1,13 +1,26 @@
page.title=Samples
page.title=Samples: Overview
@jd:body
<p>Welcome to the NDK samples area. Here, you can
<a href="{@docRoot}ndk/samples/downloads.html">download</a> a variety of sample apps to help
deepen your understanding of how to use the NDK. There are also detailed
<a href="{@docRoot}ndk/samples/walkthroughs.html">walkthroughs</a> of several
of the apps, providing additional insight into key topics.</p>
<p>Welcome to the NDK samples area. Here, you can download a variety of sample
apps to help deepen your understanding the NDK.
<p>These samples are also contained in the NDK installation package. They reside in
<p>From this page, you can download samples that provide a look at the NDK in action. A few of the
topics covered are:</p>
<ul>
<li>Managing your native app's activity lifecycle.</li>
<li>Using native OpenGL on an Android device.</li>
<li>Implementing native audio.</li>
<li>Exporting modules.</li>
</ul>
<p class="note"><strong>Note: </strong>These samples are also contained in the NDK installation
package; if you have already downloaded the NDK, you have them. They reside in
{@code $NDK/samples/}, where {@code $NDK} is the NDK installation root.</p>
<div id="sdk-terms-form">
<p><a href="{@docRoot}shareables/ndk/ndk-samples.zip" class="button">
Download ndk-samples.zip</a></p>
</div>

View File

@@ -18,7 +18,7 @@ page.title=Sample: hello-jni
<p>This sample guides you through HelloJNI, a minimal
application built with the NDK. This sample is in the {@code samples/hello-jni/} directory
under the root directory of your NDK installation.</p>
under the root directory of your NDK installation.</p>
<h2 id="an">Android.mk</h2>

View File

@@ -23,7 +23,7 @@ Java compiler still creates an executable stub for the virtual machine to run.
The stub serves as a wrapper for the actual, native program, which is located in the {@code .so}
file.</p>
<p>The app itself simply renders a color onto the entire screen, and
<p>The app itself simply renders a color onto the entire screen, and
then changes the color partly in response to movement that it detects.</p>
<h2 id="am">AndroidManifest.xml</h2>

View File

@@ -20,7 +20,7 @@ page.title=Sample: Teapot
installation's root directory. This sample uses the OpenGL library to render the iconic
<a href="http://math.hws.edu/bridgeman/courses/324/s06/doc/opengl.html#basic">Utah
teapot</a>. In particular, it showcases the {@code ndk_helper} helper class,
a collection of native helper functions required for implementing games and
a collection of native helper functions required for implementing games and
similar applications as native applications. This class provides:</p>
<ul>

View File

@@ -7,22 +7,22 @@
?>
<ul id="nav">
<li class="nav-section">
<div class="nav-section-header empty"><a href="<?cs var:toroot ?>ndk/samples/downloads.html">
<span class="en">Downloads</span></a></div>
<div class="nav-section-header empty"><a href="<?cs var:toroot ?>ndk/samples/index.html">
<span class="en">Overview</span></a></div>
</li>
<li class="nav-section">
<div class="nav-section-header">
<a href="<?cs var:toroot ?>ndk/samples/walkthroughs.html"><span class="en">
Walkthroughs</span></a></div>
<a href="<?cs var:toroot ?>ndk/samples/walkthroughs.html">
<span class="en">Walkthroughs</span></a></div>
<ul>
<li><a href="<?cs var:toroot ?>ndk/samples/sample_hellojni.html">hello-jni</a></li>
<li><a href="<?cs var:toroot ?>ndk/samples/sample_na.html">sample-na</a></li>
<li><a href="<?cs var:toroot ?>ndk/samples/sample_teapot.html">Teapot</a></li>
<li><a href="<?cs var:toroot ?>ndk/samples/sample_hellojni.html">hello-jni</a></li>
<li><a href="<?cs var:toroot ?>ndk/samples/sample_na.html">native-activity</a></li>
<li><a href="<?cs var:toroot ?>ndk/samples/sample_teapot.html">Teapot</a></li>
</ul>
</li>
</ul>

View File

@@ -4,7 +4,10 @@ page.title=Samples: Walkthroughs
<p>This section provides detailed walkthroughs of several key samples. The samples are as
follows:</p>
<li><a href="{@docRoot}ndk/samples/sample_hellojni.html">hello-jni</a>: A very basic app that illustrates core workings of the NDK.</li>
<li><a href="{@docRoot}ndk/samples/sample_na.html">native-activity</a>: An app that shows the fundamentals of constructing a purely native app. It places particular emphasis on the
<li><a href="{@docRoot}ndk/samples/sample_hellojni.html">hello-jni</a>: A very basic app that
illustrates core workings of the NDK.</li>
<li><a href="{@docRoot}ndk/samples/sample_na.html">native-activity</a>: An app that shows the
fundamentals of constructing a purely native app. It places particular emphasis on the
{@code android_native_app_glue library}.</li>
<li><a href="<a href="{@docRoot}ndk/samples/sample_teapot.html">Teapot</a>: A simple OpenGL demo, showcasing the <code>ndk_helper</code> class.</li>
<li><a href="<a href="{@docRoot}ndk/samples/sample_teapot.html">Teapot</a>: A simple OpenGL demo,
showcasing the <code>ndk_helper</code> class.</li>