Intro to Android NDK - 01 - What is the NDK?
Why Stack Overflow recommends it
Stack Overflow users link it as a short beginner tutorial when answering questions about getting started with the Android NDK and JNI.
Recommended by 3 people across 3 different months, 2013 to 2015.
What it is
A 3-minute opening video in InfoQ's 10-part Intro to Android NDK series. It explains what the Native Development Kit is, why developers use it (performance, reusing legacy C/C++ code), and how Java reaches native code through JNI before building a simple example app.
What people said
Recommends Goran Horia Mihail · 2013-07 · Stack Overflow · on “jni loadlibrary, findLibrary returns null”
From documentation: link [LINK] UnsatisfiedLinkError: Thrown when an attempt is made to invoke a native for which an implementation could not be found. Your app tries to call a native library and does not find it. Make sure that the native library is build and that you call System.loadLibrary("your-library-name"); before you use it. You can read more about Android Ndk here [LINK] . Also, here's a good tutorial that will make the Ndk easier to understand: link [this video]
Recommends Zax · 2013-08 · Stack Overflow · on “Using native code in eclipse android application”
You first need to learn about JNI (Java native Interfaces) using which you can bridge your c/c++ code with the java/android code. I have previously worked on ndk so i suggest you to do some readup from android-ndk readme. Requirements: *Download Android-ndk from Android official website. *Install cygwin for windows, i recommend you to use linux for development in ndk as you have a readymade terminal available there. *set environment variable with ndk-path. *Inside your Android project create a directior " jni " *This folder should contain all your c/c++ files. and an android makefile "Android.mk" using which the android ndk-build will compile your c/c++ program you need to use in you android
Recommends RajSharma · 2015-06 · Stack Overflow · on “What is the difference between normal method call from native method call?”
The NDK allows you to write code using C/C++ and then link it into your Java application. You can potentially increase the speed of your application. The downsides to the NDK are, it only compiles to specific CPUs (whereas staying in Java land means it will work on any targetted version of Android). Native C code would use the underlying operating system's (linux) APIs (system calls), and hence would be much faster than when java code would have to be interpreted through the JVM.Most games use the native C code libraries for 2D / 3d graphics, input, sound etc... SO there is no difference but you can increase your code performance and if you want to code for some specific cpu you can go with