> Without having JNI_OnLoad() Android giving UnsatisfiedLinkError
> exception.Why is it behaving like that.Am i missing any thing
> regararding settings or any thing.
>
> But if i use JNI_OnLoad() and registering native functions in that
> one.I am not getting that exception.
You dont need JNI_OnLoad() if you are generating the JNI function
declarations using javah.
But if you are using .. say SWIG to generate them or writing by hand
and the function declarations don't follow the following syntax:
Java_<fully qualified class name>_<function name>()
then you need to define a mapping between the Java Signatures and the
function declarations in JNI code through JNI_OnLoad()
And AFAIK, sample NDK projects do run without JNI_OnLoad()
Shreesh