blob: 6723ed7928af4cf43060e3810964d58d01e01208 [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>
31 &nbsp;&nbsp;public <span style="color:#1DE9B6;font-weight:700">native</span> void <span style="color:#eee">computerFoo()</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:featured+tag:preview"
47 data-cardSizes="6x6"
48 data-maxResults="3"></div>
49</div></section>
50
51<section class="dac-section dac-light"><div class="wrap">
52 <h1 class="dac-section-title">Something else</h1>
53 <div class="dac-section-subtitle">
54 Placeholder
55 </div>
56
57 <ul class="dac-section-links">
58 <li class="dac-section-link"><a href="">
59 <span class="dac-sprite dac-auto-chevron"></span>
60 Overview and Usage
61 </a></li>
62 <li class="dac-section-link"><a href="/google/play/filters.html">
63 <span class="dac-sprite dac-auto-chevron"></span>
64 User Guide
65 </a></li>
66
67 </ul>
68</div></section>