Article Side

Online Article Directory!

Hello Guest! Login or Register to submit articles!

How to utilize NDK for Android Application and Game Development

By Pradeep Hunka Subscribe to RSS | April 24th 2012 | Views:

Android software development is the process by which new applications are created for the Android operating system. Android applications are generally developed in the Java programming language using the Android Software Development Kit, but other development tools like NDK are also available.

What is NDK?

NDK is a software development tool for development of android applications and games. Android development using SDK is done in Java. NDK allows the user to implement parts of applications using native code languages such as C and C++. Therefore, it is called as Native Android Development.The Android NDK is available for three platforms- Windows, Mac OS X(Intel), Linux 32-64 bit(x86).

Using NDK proves beneficial in the sense, that it allows the user to generate native code in certain class’s applications, in the form of reuse and increasing performance in certain cases. The Android NDK is always used with the Android SDK. To run the Android NDK, the user must have a complete installation of the Android SDK installation (including all dependencies) and an Android 1.5 SDK or later version. Native classes can be called from Java code running under the Dalvik VM using the System.loadLibrary call, which is part of the standard Android Java classes.

Contents of NDK

The NDK contains the APIs, documentation, and sample applications that help you write your native code.

The NDK includes a set of cross-toolchains (compilers, linkers, etc.) that can generate native ARM binaries on Linux, OS X, and Windows (with Cygwin) platforms.

It provides a set of system headers for stable native APIs that are guaranteed to be supported in all later releases of the platform:libc (C library) headers,libm (math library) headers, JNI interface headers, libz (Zlib compression)headers, liblog (Android logging) header, OpenGL ES 1.1 and OpenGL ES 2.0 (3D graphics libraries) headers, libjnigraphics (Pixel buffer access) header (for Android 2.2 and above), minimal set of headers for C++ support, OpenSL ES native audio libraries, Android native application APIS.

Ways to use native code

The Android framework provides two means in which the native code can be used for Android application development:-

1) Write your application using the Android framework and use JNI to access the APIs provided by the Android NDK. This technique allows you to take advantage of the convenience of the Android framework, but still allows you to write native code when necessary. You can install applications that use native code through the JNI on devices that run Android 1.5 or later.

2) Write a native activity, which allows you to implement the lifecycle callbacks in native code. The Android SDK provides the NativeActivity class, which is a convenience class that notifies your native code of any activity lifecycle callbacks (onCreate(), onPause(), onResume(), etc). You can implement the callbacks in your native code to handle these events when they occur. Applications that use native activities must be run on Android 2.3 (API Level 9) or later.

Required development tools

1) For all development platforms, GNU Make 3.81 or later is required. Earlier versions of GNU Make might work but have not been tested.

2) A recent version of awk (either GNU Awk or Nawk) is also required.

3) For Windows, Cygwin 1.7 or higher is required. The NDK will not work with Cygwin 1.5 installations.

It is recommended to use NDK only when it is necessary for the application. Its use should not be governed by the preference to use a certain languages the use of native code may not necessarily lead to increase in speed of the program. Using NDK will always increase the program complexity.

About Hunka Technologies

Hunka Technologies is on one of the leading mobile applications development company based in India. Hunka specializes in Apple iphone application development, android application development, windows mobile application development and HTML 5. Hunka also has a specialized team for iphone game development, ipod & ipad game development and android game development. For more information please check our website:

Pradeep Hunka - About Author:

Share on Facebook Tweet It Stumbleupon this post This post is delicious !

Article Source:

Related Software Articles Subscribe to RSS

Joomla Development - Exceptional CMS platform for website development
Published by GR Brains on November 25th 2011 | Software
We have expert professionals for Joomla development with highly experienced providing Joomla Custom ...
List of programming languages and development tools you probably have never heard of
Published by Sarah Jacob on February 21st 2012 | Software
Some tricks and trades that developers would rather keep to themselves!...
Risks associated with offshore web development services
Published by Jon on March 20th 2012 | Software
Offshore software development (OSD) has a number of specific risks that can control the choice of en...
What does the software development kit assist for efficient Google's Android application development?
Published by Robert Woodard on May 14th 2012 | Software
The Google's Android SDK supports creating 2 types of mobile applications. These 2 would be the nati...
Magento custom development offers finest capabilities
Published by Terry Littrell on May 18th 2012 | Software
The article describes the usefulness of Magento custom development and of Magento extensions. The br...
Things to know about iPhone app development
Published by Martin Tuner on January 4th 2012 | Software
Before getting initiated with the iPhone app development project, an individual should offer his foc...
Technical knowledge and innovative ideas are important application development
Published by Anoop TU on May 31st 2012 | Software
Communication section have been developing very much nowadays with the dynamic telecom sector. Smar...
Understanding what caching is within software development as well as exactly what is available together with it
Published by Waltersloan on May 25th 2012 | Software
What is considered to be crucial in newer software development program is usually concurrency. Concu...
Apple ipad apps development could run in landscape or portrait modes
Published by Robert Woodard on April 17th 2012 | Software
Among the outstanding capabilities of apple ipad is its touch screen function. Additionally, it also...
Customized Mobile Apps development
Published by Terry Littrell on June 11th 2012 | Software
The article is about mobile apps development along with a list of its capabilities it offers busines...
Free android games for pc
Published by Maria Gini on April 21st 2012 | Software
The game Drag racing is about flashy modified cars. Not like any other racing game, it brings the br...
In 2012, US IT managers are looking to replace their offshore software development providers by nearshore ones.
Published by Yeleny Lopez on January 24th 2012 | Software
We have built customized tools for automating software development phases, maximizing the power leve...
The key reason why India is the right option when considering offshore software development services
Published by Randykennedy on June 15th 2012 | Software
This is actually because of their considerable skilled people, total government aid and also high-te...
Microsoft CRM development Concrete Organizational Benefits
Published by Grey Matter India on December 29th 2011 | Computer
This article introduces readers to the basics of CRM. As Microsoft is the most implemented CRM, we w...
Advantages of Offshore software development
Published by Roger Lopez on January 17th 2012 | Software
This article mentions advantages and disadvantages of offshore software development.

Custom CMS Development necessary for better website development
Published by Pranav Thakker on December 15th 2011 | Software
CMS Development is one kind of software packages that is being used by most of people widely range t...
B2B website development in ASP call us now 954-397-0800
Published by Sigma Solve LLC on July 13th 2012 | Software
Sigma Solve LLC Provides Best Web Portal Development in ASP.NET Services by Experts ASP.NET Develope...
Businesses benefit widely through Mobile application development
Published by Terry Littrell on May 11th 2012 | Software
The article is about mobile application development which is remarkably beneficial for businesses wo...
Get the best insurance software developed by a leading software development Company
Published by Paul on December 6th 2011 | Software
Insurance Software Services is one of the best software company involved in the development of insur...
Software development India, the most preferred ones
Published by Amit Kumar on July 19th 2012 | Software
Software has become necessity for any modern business. Modern business needs software applications f...