blob: a88c15df5fb54defedb6783775088a592155d9e5 [file] [log] [blame]
Dirk Dougherty85dea522015-05-21 14:20:25 -07001page.title=Android NDK
Joe Fernandez17c4fe72015-05-27 15:55:57 -07002page.tags="ndk, native, c, c++",
Dirk Dougherty85dea522015-05-21 14:20:25 -07003meta.tags="ndk, native, c++"
smain@google.com01783212015-04-10 20:45:28 -07004fullpage=true
Dirk Dougherty85dea522015-05-21 14:20:25 -07005section.landing=true
6header.hide=1
7footer.hide=1
smain@google.com01783212015-04-10 20:45:28 -07008@jd:body
9
Dirk Dougherty85dea522015-05-21 14:20:25 -070010<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">
David Friedman14d17772015-05-26 13:21:24 -070016 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.
Dirk Dougherty85dea522015-05-21 14:20:25 -070017 </p>
smain@google.com01783212015-04-10 20:45:28 -070018
Dirk Dougherty85dea522015-05-21 14:20:25 -070019 <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">
smain@google.com01783212015-04-10 20:45:28 -070025
Dirk Dougherty85dea522015-05-21 14:20:25 -070026 <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">&nbsp;&nbsp;/**<br>
29 &nbsp;&nbsp;* Native method implemented in C/C++<br>
30 &nbsp;&nbsp;*/</span><br>
Johan Euphrosine6a7406b2015-05-22 18:01:57 -070031 &nbsp;&nbsp;public <span style="color:#1DE9B6;font-weight:700">native</span> void <span style="color:#eee">computeFoo()</span>;<br>
Dirk Dougherty85dea522015-05-21 14:20:25 -070032 }</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"
Dirk Dougherty78c688f2015-05-22 10:23:10 -070046 data-query="type:blog+tag:ndk"
Dirk Dougherty85dea522015-05-21 14:20:25 -070047 data-cardSizes="6x6"
Dirk Doughertyc85bf852015-05-24 19:56:35 -070048 data-maxResults="9"
Dirk Dougherty78c688f2015-05-22 10:23:10 -070049 data-initial-results="3"></div>
Dirk Dougherty85dea522015-05-21 14:20:25 -070050</div></section>