so into apk
1. use given .so
a. make lib dir under the app's dir
b.copy your libXX.so into the dir.
c.modify the Android.mk
add "COCAL_JNI_SHARED_LIBRARIES :=libXX"
- LOCAL_PATH:= $(call my-dir)
- include $(CLEAR_VARS)
- LOCAL_MODULE_TAGS := optional
- LOCAL_SRC_FILES := $(call all-java-files-under, src)
- LOCAL_PACKAGE_NAME := Mms
- # Builds against the public SDK
- #LOCAL_SDK_VERSION := current
- LOCAL_STATIC_JAVA_LIBRARIES += android-common jsr305
- LOCAL_REQUIRED_MODULES := SoundRecorder
- LOCAL_PROGUARD_FLAG_FILES := proguard.flags
- LOCAL_JNI_SHARED_LIBRARIES := libelfylin
- include $(BUILD_PACKAGE)
- # This finds and builds the test apk as well, so a single make does both.
- include $(call all-makefiles-under,$(LOCAL_PATH))
2.use give .so
a.don't modify Android.mk
make"libs/armeabi" under app's directory.
b.copy libXX.so into the directory
(not try yet)
3.with c source code
a.build your source directory, just as other lib files in external directory.
b. copy it to any of your app's subdirectory
c. modify "Android.mk"
add add "COCAL_JNI_SHARED_LIBRARIES :=libXX"