Friday 8 May 2015

Java native programming in Android

Are you a C maniac ? But then less knowledge in java .
1) How to write your own Android application with all your C /C++ implementation
2) Having a good project in C ? Want to convert to an Android application ?

All your answer is JNI

Yes android helps you to implement all your functions in C and aids you in implementing your algorithms in android application

How to implement?
All you need is NDK .
1) Download the latest NDK  from google developers site.
2) Give the location of NDK in eclipse ( windows / preferences /Android / NDK)
3) Right click your project , android tools , then click Add native support

A jni folder will be created in the android which will be your source folder for writing C implementation

No comments:

Post a Comment