Dirk Dougherty | 85dea52 | 2015-05-21 14:20:25 -0700 | [diff] [blame] | 1 | page.title=Android NDK |
| 2 | page.tags="ndk, native, c, c++", |
| 3 | meta.tags="ndk, native, c++" |
smain@google.com | 0178321 | 2015-04-10 20:45:28 -0700 | [diff] [blame] | 4 | fullpage=true |
Dirk Dougherty | 85dea52 | 2015-05-21 14:20:25 -0700 | [diff] [blame] | 5 | section.landing=true |
| 6 | header.hide=1 |
| 7 | footer.hide=1 |
smain@google.com | 0178321 | 2015-04-10 20:45:28 -0700 | [diff] [blame] | 8 | @jd:body |
| 9 | |
Dirk Dougherty | 85dea52 | 2015-05-21 14:20:25 -0700 | [diff] [blame] | 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> |
smain@google.com | 0178321 | 2015-04-10 20:45:28 -0700 | [diff] [blame] | 18 | |
Dirk Dougherty | 85dea52 | 2015-05-21 14:20:25 -0700 | [diff] [blame] | 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"> |
smain@google.com | 0178321 | 2015-04-10 20:45:28 -0700 | [diff] [blame] | 25 | |
Dirk Dougherty | 85dea52 | 2015-05-21 14:20:25 -0700 | [diff] [blame] | 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> |
Johan Euphrosine | 6a7406b | 2015-05-22 18:01:57 -0700 | [diff] [blame^] | 31 | public <span style="color:#1DE9B6;font-weight:700">native</span> void <span style="color:#eee">computeFoo()</span>;<br> |
Dirk Dougherty | 85dea52 | 2015-05-21 14:20:25 -0700 | [diff] [blame] | 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" |
Dirk Dougherty | 78c688f | 2015-05-22 10:23:10 -0700 | [diff] [blame] | 46 | data-query="type:blog+tag:ndk" |
Dirk Dougherty | 85dea52 | 2015-05-21 14:20:25 -0700 | [diff] [blame] | 47 | data-cardSizes="6x6" |
Dirk Dougherty | 78c688f | 2015-05-22 10:23:10 -0700 | [diff] [blame] | 48 | data-maxResults="6" |
| 49 | data-initial-results="3"></div> |
Dirk Dougherty | 85dea52 | 2015-05-21 14:20:25 -0700 | [diff] [blame] | 50 | </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> |