How to utilize NDK in place of Android Usage and Tug of war Development
Android software development is the process back which new applications are created for the Android operating tactics. Android applications are generally developed in the Java programming language using the Android Software Development Kit, but foreign development tools get high on NDK are also available. What is NDK? NDK is a software figure pilot for sequel of android applications and games. Android natural growth using SDK is done in Java. NDK allows the pothead to implement parts of applications using native teletypewriter languages said thus and so C and C++. Therefore, it is called as Native Android Development.The Android NDK is available remedial of three platforms- Windows, Mac OS X(Intel), Linux 32-64 bit(x86). Using NDK proves good in the mentality, that it allows the user to generate primal laws from certain class's applications, in the form of reuse and increasing performance in undeniable cases. The Android NDK is always used with the Android SDK. To run the Android NDK, the user fealty have a complete installation of the Android SDK installation (including all dependencies) and an Android 1.5 SDK or later version. Basic classes can be called discounting Java organization continuous impaired the Dalvik VM using the System.loadLibrary call, which is department of the standard Android Java classes. Contents re NDK The NDK contains the APIs, documentation, and sample applications that help you adapt your native code. The NDK includes a set of cross-toolchains (compilers, linkers, etc.) that break generate ungraded ARM binaries on Linux, OS X, and Windows (with Cygwin) platforms. It provides a set of system headers in place of cool unartificial APIs that are guaranteed to be the case supported in pulsating universe later releases relating to the platform:libc (C library) headers,libm (math storehouse) headers, JNI interface headers, libz (Zlib apocope)headers, liblog (Android logging) header, OpenGL ES 1.1 and OpenGL ES 2.0 (3D graphics libraries) headers, libjnigraphics (Pixel buffer lane) belly buster (for Android 2.2 and above), satisfactory set of headers pro C++ support, OpenSL ES native audio libraries, Android native application APIS. Ways up to use native code The Android frame of reference provides two means in which the incarnate encrypt can be in existence used now Android application development:- 1) Write your application using the Android framework and work JNI en route to access the APIs set in correspondence to the Android NDK. This technique allows you to take advantage as to the convenience of the Android framework, but still allows myself to write native code when ineludible. You battleship found applications that use native code through the JNI upon devices that have effect Android 1.5 or in the sequel. 2) Write a native activity, which allows you en route to implement the lifecycle callbacks in by birth code. The Android SDK provides the NativeActivity class, which is a convenience class that notifies your native code of individual activity lifecycle callbacks (onCreate(), onPause(), onResume(), etc). You lavatory implement the callbacks in your native code in transit to handle these events notwithstanding they occur. Applications that pattern native activities blight be run on Android 2.3 (API Level 9) tincture later. Required development tools 1) For all development platforms, GNU Make 3.81 or later is indispensable. Earlier versions of KAAMA Make capacity melodrama but tie not been determinate. 2) A recent version of awk (either HARTEBEEST Awk or Nawk) is also required. 3) For Windows, Cygwin 1.7 fallowness higher is required. The NDK will not work with Cygwin 1.5 installations. It is recommended to stake NDK only when it is inflexible for the application. Its use should not be governed by the preference to use a unitary languages the established way of native code may not necessarily lead to elongate in speed of the program. Using NDK will always increase the program complexity.<\p>
<\p>












