1 page.title=Android NDK 2 page.tags="ndk, native, c, c++", 3 meta.tags="ndk, native, c++" 4 fullpage=true 5 section.landing=true 6 header.hide=1 7 footer.hide=1 8 @jd:body 9 10 <section class="dac-expand dac-hero dac-dark dac-invert" style="background-repeat:no-repeat;"> 11 <div class="wrap"> 12 <div class="cols dac-hero-content" style="margin-top:32px"> 13 <div class="col-7of16 cdol-push-1of16"> 14 <h1 class="dac-hero-title">Android NDK</h1> 15 <p class="dac-hero-description"> 16 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. 17 </p> 18 19 <a class="dac-hero-cta" href="/ndk/guides/index.html"> 20 <span class="dac-sprite dac-auto-chevron"></span> 21 Get Started 22 </a><br> 23 </div> 24 <div class="col-8of16 col-push-1of16" style="margin-top:48px"> 25 26 <span style="color:#00e5ff;font-family:'Roboto Mono', monospace;font-weight:400">public class <span 27 style="color:#eee">MyActivity</span> extends Activity {<br> 28 <span style="color:#ccc"> /**<br> 29 * Native method implemented in C/C++<br> 30 */</span><br> 31 public <span style="color:#1DE9B6;font-weight:700">native</span> void <span style="color:#eee">computeFoo()</span>;<br> 32 }</span> 33 </div> 34 </div> 35 </div> 36 </section> 37 38 <div class="wrap dac-offset-parent"> 39 <a class="dac-fab dac-scroll-button" data-scroll-button href="#latest"> 40 <i class="dac-sprite dac-arrow-down-gray"></i> 41 </a> 42 </div> 43 <section class="dac-section dac-gray dac-small dac-invert" id="latest"><div class="wrap"> 44 <h2 class="norule">Latest</h2> 45 <div class="resource-widget resource-flow-layout col-16" 46 data-query="type:blog+tag:ndk" 47 data-cardSizes="6x6" 48 data-maxResults="9" 49 data-initial-results="3"></div> 50 </div></section> 51