|
From: | Sylvain Berfini |
Subject: | Re: [Linphone-developers] How to call JNI Method in Linphone library |
Date: | Tue, 30 May 2017 15:09:27 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 |
Hi, If you are using linphone library, the following method will
return the JNIEnv: ms_get_jni_env(); For it to work properly, the simple way is to add the following in your native code: JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *ajvm, void *reserved) { ms_set_jvm(ajvm); } Cheers, Sylvain Berfini Software Engineer @ Belledonne Communications On 30/05/2017 14:55, Amine Ghabi wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |