How to port native c code on android
can anyone tell me how to port a native c program on android platform.开发者_C百科.should i include some c libraries or how exactly...?
Thanks in advance,
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/
Read up on the Android Native Development Kit (NDK)
You may find this useful: Using the Android NDK
I have used all those headers in one of my previous Android NDK implementations, except the mman.h and fb.h. However since mman is under sys and fb is part of android source, I guess you should be able to go ahead with it.
Let's know what issues you come across in the process.
BTW, what calls you need from mman.h?
精彩评论