I found a lot of tutorials showing how to start developing Android Applications using NDK.
But I have a rather "easy/stupid" question:
Please consider the following two tutorials:
- http://mobile.tutsplus.com/tutorials/android/ndk-tutorial/
- http://www.indiedb.com/tutorials/creating-compiling-and-deploying-native-projects-from-the-android-ndk
- http://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/
- http://marakana.com/forums/android/examples/49.html
Now, in the second tutorial they are building the hello-jni
example.
My question is:
After using the ndk-build
and producting the:
is it possible to use the resulted libhello-jni.so
and distribute this to others instead of the actual C
code?
For example modifying the Android.mk
and replacing com_myproject_MyActivity.c
to something.so
in order to include the shared library?:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := mylib
LOCAL_SRC_FILES := com_myproject_MyActivity.c
include $(BUILD_SHARED_LIBRARY)
Any suggestions or tutorials welcome. Thanks in advance.