can anyone tell me how to port a native c program on android platform..should i include some c libraries or how exactly...?
Thanks in advance,
You can add C and C++ code to your Android project by placing the code into a cpp directory in your project module. When you build your project, this code is compiled into a native library that Gradle can package with your app.
To Install and Use C/C++ compiler in Termux (in Termux clang is the C/C++ compiler) , Download & Install Termux from : Play Store. After Installing execute this command pkg install clang. After Successfully installing clang you can compile C/C++ scripts.
Bionic is an implementation of the standard C library, developed by Google for its Android operating system.
Android native code is C/C++.
I have found the solution here is the start..
http://integratingstuff.com/2010/12/12/calling-native-c-code-through-jni-in-android-applications/
http://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With