Introduction To Android NDK

Introduction To Android NDK

Photo Aleksandar Gargenta
Technical Program Manager
Twitter Inc
Member since Jan 19, 2007
Stream Posts: 38
Posted on Apr 27, 2012 (3 years ago)
Seen 19414 times.
Tagged As:

While most Android apps are written in pure Java, Android's Native Development Kit (NDK) enables us to access code written in C/C++ via Java Native Interface (JNI). This is often done in the name of performance, or to take advantage of existing legacy code-base.

In this tutorial, we will see what NDK is, why we would use it, and build a simple application to see how to get started. I hope you enjoy it.

01 - What is the NDK? (3:16)
02 - Why use the NDK? (4:07)
03 - Installation (2:17)
04 - Getting Started (22:54)
05 - Application Binary Interface (8:09)
06 - The UI (10:49)
07 - The Client (15:32)
08 - The First Run (9:10)
09 - Using LibLog (11:01)
10 - Using JNI_OnLoad (18:51)

Code used in this tutorial is available at Marakana's GitHub Repository.

Comments

You have to login to post a comment.
Posted on Aug 15, 2014 (9 months ago)
Member since Aug 15, 2014
wonderful Alex, Great tutorial...
Posted on Aug 04, 2014 (10 months ago)
Photo Sanjay Bhalerao
Mr.
Trizeus Consultancy Services
Member since Aug 4, 2014
Wow really Great Tutorial !!! , It really saved my time , Thanks :) I will always want more for you, I would love to see *string handling,sockets, and executing arm-linux-gnueabi-gcc code from Android. If possible pls share it. Thanks ! San
Posted on Jun 27, 2014 (11 months ago)
Photo Saeed Mirzaee
Amirkabir
Member since Jun 27, 2014
Is there any setup procedure for windows?
Posted on Jan 26, 2014 (1 year ago)
Photo Priyanthi Dassanayake
PROGRAMMER
QUEST INFORMATION SYSTEMS
Member since Jan 26, 2014
wondeful Alex, Great tutorial... Was very very helpful, Thanks you
Posted on Dec 12, 2013 (1 year ago)
Photo Ehab Alsharairi
MSc in physics, mobile developer.
Plexabe inc.
Member since Dec 12, 2013
Great tutorial! it's the amazing step to start.
Posted on Jul 02, 2012 (3 years ago)
Photo Ashok Tiwari
Pokhara
Member since Jul 2, 2012
Best Tutorial i have ever came across !!!
Posted on May 05, 2012 (3 years ago)
Photo Aleksandar Gargenta
Technical Program Manager
Twitter Inc
Member since Jan 19, 2007
Thanks Paul! I definitely want to post a tutorial on NDK debugging, so do expect to see something soon!
Posted on May 05, 2012 (3 years ago)
Member since Dec 20, 2011
Great tutorial! It's easy to follow the steps to get up and running with NDK. An 11th module on ndk-gdb would be a would be my only additional request. Nice work Saša!