Updates loadLibrary to be able to use native libraries from within the bundle.

smack4
damencho 10 years ago
parent 0ab59e8120
commit b715a8c430

@ -1,23 +1,24 @@
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.java.sip.communicator.impl.sysactivity;
import net.java.sip.communicator.util.*;
import net.java.sip.communicator.util.Logger;
import org.jitsi.util.*;
/**
* @author Damian Minkov
@ -113,7 +114,8 @@ public class SystemActivityNotifications
// Don't load native library on Android to prevent the exception
if(!org.jitsi.util.OSUtils.IS_ANDROID)
{
System.loadLibrary("sysactivitynotifications");
JNIUtils.loadLibrary("sysactivitynotifications",
SystemActivityNotifications.class.getClassLoader());
ptr = allocAndInit();
if (ptr == -1)

Loading…
Cancel
Save