my problem is that, I don't know how to call functions form .so library. I have successfully compiled NDK library spatialite-android and have no problems to use it in android Java application. But I have no idea how exactly use it in another NDK project. I have added it in Android.mk file:
APP_ABI := armeabi armeabi-v7a
APP_PLATFORM := android-8
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := UsingSpatialite
LOCAL_SRC_FILES := UsingSpatialite.c
LOCAL_LDLIBS := -llog -lGLESv1_CM
include $(BUILD_SHARED_LIBRARY)
LOCAL_PATH := /home/spatialite/jni
include $(CLEAR_VARS)
LOCAL_MODULE := libjsqlite
LOCAL_SRC_FILES := libjsqlite/libjsqlite.so
include $(PREBUILT_SHARED_LIBRARY)
And library libjsqlite.so(android-spatialite) is successfully added in: libs/armeabi/libjsqlite.so From this point, I don't know how to use that library. How to call any function from that library?