I need to add a custom function in sqlite3 in android app to calculate distance between two geo coordinate. i have found a c function which can be added as a custom function in sqlite3.
I am using NDK to compile sqlite3 files to create .so
file. But I am not sure where to put code for my custom function which is also written in C
and where to call sqlite3_create_function(...)
which attaches custom function with sqlite so I can use my custom function in sqlite queries.