blob: f97dbef79eb247287c6b00af2f02eff08c886851 [file] [log] [blame]
Dirk Dougherty85dea522015-05-21 14:20:25 -07001page.title=Android NDK
2page.tags="ndk, native, c, c++",
3meta.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">
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>
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 Dougherty78c688f2015-05-22 10:23:10 -070048 data-maxResults="6"
49 data-initial-results="3"></div>
Dirk Dougherty85dea522015-05-21 14:20:25 -070050</div></section>
51
52<section class="dac-section dac-light"><div class="wrap">
53 <h1 class="dac-section-title">Something else</h1>
54 <div class="dac-section-subtitle">
55 Placeholder
56 </div>
57
58 <ul class="dac-section-links">
59 <li class="dac-section-link"><a href="">
60 <span class="dac-sprite dac-auto-chevron"></span>
61 Overview and Usage
62 </a></li>
63 <li class="dac-section-link"><a href="/google/play/filters.html">
64 <span class="dac-sprite dac-auto-chevron"></span>
65 User Guide
66 </a></li>
67
68 </ul>
69</div></section>