I am using http://www.sqlite.org/c3ref/open.html as a reference for using the sqlite c for opening the db
i m calling like this
package com.example.offline;
public class NativeLib {
static {
System.loadLibrary("sqlite3");
}
public native int sqlite3_open(String filename,Object sqlite3);
}
As documentation says
int sqlite3_open(
const char *filename, /* Database filename (UTF-8) */
sqlite3 **ppDb /* OUT: SQLite db handle */
);
Error in logcat
12-12 14:49:15.645: W/dalvikvm(3265): No implementation found for native Lcom/example/offline/NativeLib;.sqlite3_open:(Ljava/lang/String;Ljava/lang/Object;)I
So my question is can we create sqlite c object in our java
Here is my Android.mk file
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := sqlite3
LOCAL_SRC_FILES := sqlite3.c
include $(BUILD_SHARED_LIBRARY)
Thanx guys