I'll add my usual pointer to dalvik/vm/jni-tips.html, in this case the
"Native Libraries" section:

  
http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=docs/jni-tips.html;hb=HEAD#Native_Libraries

It says a few words about why having one is recommended, and has a
link to the section of the JNI spec that explains method discovery.


On Jul 14, 9:51 am, David Turner <[email protected]> wrote:
> No, it's optional.
>
> On Tue, Jul 14, 2009 at 6:00 AM, krr_android <[email protected]> wrote:
>
> > Hi,
>
> > Is it mandatory to provide this method inisde any .so library?
>
> > JNIEXPORT jint JNICALL
> > JNI_OnLoad (JavaVM * vm, void * reserved)
> > {
> >    return JNI_VERSION_1_6;
> > }
>
> > Because, I dont see this inside any of the source files of the natice
> > samples provided in the NDK. Then, how does it work there?
>
> > Pls clarify the necessity of this function. Thanks in advance.
>
> > Regards,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to