2015-05-21 14:20:25 -07:00
page.title=Android NDK
2015-05-27 15:55:57 -07:00
page.tags="ndk, native, c, c++",
2015-05-21 14:20:25 -07:00
meta.tags="ndk, native, c++"
2015-04-10 20:45:28 -07:00
fullpage=true
2015-05-21 14:20:25 -07:00
section.landing=true
header.hide=1
footer.hide=1
2015-04-10 20:45:28 -07:00
@jd:body
2015-05-21 14:20:25 -07:00
<section class="dac-expand dac-hero dac-dark dac-invert" style="background-repeat:no-repeat;">
<div class="wrap">
<div class="cols dac-hero-content" style="margin-top:32px">
<div class="col-7of16 cdol-push-1of16">
<h1 class="dac-hero-title">Android NDK</h1>
<p class="dac-hero-description">
2015-05-26 13:21:24 -07:00
The Android NDK is a toolset that lets you implement parts of your app using native-code languages such as C and C++. For certain types of apps, this can help you reuse existing code libraries written in those languages.
2015-05-21 14:20:25 -07:00
</p>
<a class="dac-hero-cta" href="/ndk/guides/index.html">
<span class="dac-sprite dac-auto-chevron"></span>
Get Started
</a><br>
</div>
<div class="col-8of16 col-push-1of16" style="margin-top:48px">
<span style="color:#00e5ff;font-family:'Roboto Mono', monospace;font-weight:400">public class <span
style="color:#eee">MyActivity</span> extends Activity {<br>
<span style="color:#ccc"> /**<br>
* Native method implemented in C/C++<br>
*/</span><br>
2015-05-22 18:01:57 -07:00
public <span style="color:#1DE9B6;font-weight:700">native</span> void <span style="color:#eee">computeFoo()</span>;<br>
2015-05-21 14:20:25 -07:00
}</span>
</div>
</div>
</div>
</section>
<div class="wrap dac-offset-parent">
<a class="dac-fab dac-scroll-button" data-scroll-button href="#latest">
<i class="dac-sprite dac-arrow-down-gray"></i>
</a>
</div>
<section class="dac-section dac-gray dac-small dac-invert" id="latest"><div class="wrap">
<h2 class="norule">Latest</h2>
<div class="resource-widget resource-flow-layout col-16"
2015-05-22 10:23:10 -07:00
data-query="type:blog+tag:ndk"
2015-05-21 14:20:25 -07:00
data-cardSizes="6x6"
2015-05-24 19:56:35 -07:00
data-maxResults="9"
2015-05-22 10:23:10 -07:00
data-initial-results="3"></div>
2015-05-21 14:20:25 -07:00
</div></section>