linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] linphone android - exception on linphonemanage


From: Marotte Gaetan
Subject: Re: [Linphone-developers] linphone android - exception on linphonemanager.createansstart
Date: Thu, 10 Jan 2013 22:43:55 +0100

Thank you for answering so quickly, It’s probably the problem.

I have the ndk but don’t know where to add the path , so I have to specify it when using prepare_source

I even integrated the .core source in my project , but it didn’t help.

 

I checked the readme file ,I have ndk but didn’t find “autotools”.

 

I used prepare_sources but I guess I will have to restart from step1.

 

Here is the log

01-10 22:37:45.669: W/dalvikvm(27737): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lorg/linphone/core/LinphoneCoreFactoryImpl;

01-10 22:37:45.669: D/AndroidRuntime(27737): Shutting down VM

01-10 22:37:45.669: W/dalvikvm(27737): threadid=1: thread exiting with uncaught exception (group=0x4001d578)

01-10 22:37:45.679: E/AndroidRuntime(27737): FATAL EXCEPTION: main

01-10 22:37:45.679: E/AndroidRuntime(27737): java.lang.ExceptionInInitializerError

01-10 22:37:45.679: E/AndroidRuntime(27737): at java.lang.Class.classForName(Native Method)

01-10 22:37:45.679: E/AndroidRuntime(27737): at java.lang.Class.forName(Class.java:234)

01-10 22:37:45.679: E/AndroidRuntime(27737): at java.lang.Class.forName(Class.java:181)

01-10 22:37:45.679: E/AndroidRuntime(27737): at org.linphone.core.LinphoneCoreFactory.instance(LinphoneCoreFactory.java:43)

01-10 22:37:45.679: E/AndroidRuntime(27737): at org.linphone.LinphoneManager.startLibLinphone(LinphoneManager.java:454)

01-10 22:37:45.679: E/AndroidRuntime(27737): at org.linphone.LinphoneManager.createAndStart(LinphoneManager.java:264)

01-10 22:37:45.679: E/AndroidRuntime(27737): at org.linphone.LinphoneService.onCreate(LinphoneService.java:147)

01-10 22:37:45.679: E/AndroidRuntime(27737): at android.app.ActivityThread.handleCreateService(ActivityThread.java:1966)

01-10 22:37:45.679: E/AndroidRuntime(27737): at android.app.ActivityThread.access$2500(ActivityThread.java:121)

01-10 22:37:45.679: E/AndroidRuntime(27737): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:997)

01-10 22:37:45.679: E/AndroidRuntime(27737): at android.os.Handler.dispatchMessage(Handler.java:99)

01-10 22:37:45.679: E/AndroidRuntime(27737): at android.os.Looper.loop(Looper.java:138)

01-10 22:37:45.679: E/AndroidRuntime(27737): at android.app.ActivityThread.main(ActivityThread.java:3701)

01-10 22:37:45.679: E/AndroidRuntime(27737): at java.lang.reflect.Method.invokeNative(Native Method)

01-10 22:37:45.679: E/AndroidRuntime(27737): at java.lang.reflect.Method.invoke(Method.java:507)

01-10 22:37:45.679: E/AndroidRuntime(27737): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:878)

01-10 22:37:45.679: E/AndroidRuntime(27737): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)

01-10 22:37:45.679: E/AndroidRuntime(27737): at dalvik.system.NativeStart.main(Native Method)

01-10 22:37:45.679: E/AndroidRuntime(27737): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load linphone: findLibrary returned null

01-10 22:37:45.679: E/AndroidRuntime(27737): at java.lang.Runtime.loadLibrary(Runtime.java:429)

01-10 22:37:45.679: E/AndroidRuntime(27737): at java.lang.System.loadLibrary(System.java:554)

01-10 22:37:45.679: E/AndroidRuntime(27737): at org.linphone.core.LinphoneCoreFactoryImpl.<clinit>(LinphoneCoreFactoryImpl.java:85)

01-10 22:37:45.679: E/AndroidRuntime(27737): ... 18 more

01-10 22:37:45.679: W/ActivityManager(1821):   Force finishing activity org.linphone/.LinphoneLauncherActivity

 

Thanks again

Gaetan

 

 

 

De : Sylvain Berfini [mailto:address@hidden De la part de Sylvain Berfini
Envoyé : jeudi 10 janvier 2013 20:47
À : address@hidden
Cc : address@hidden
Objet : Re: [Linphone-developers] linphone android - exception on linphonemanager.createansstart

 

Hi Gaetan,

Could you give us more information about your exeception (like the stacktrace) ?
My guess would be you didn't compile the linphone libraries, and the application crashes when it tries to initialize the linphonecore.
You should take a look at the README file that explains how to build everything properly.

Regards.

Sylvain Berfini
Software Engineer @ Belledonne Communications

Le 10/01/2013 20:22, Marotte Gaetan a écrit :

Hello, i downloaded and compiled source , unfortunately it crash on emulator and on my phone at runtime.

Exception is occurring on Linphonemanager.createandstart, I have seen lot of references to this exception on internet but no solution.

 

I wanted to build a light version by extracting all required class and references and adding it to my project , compilation was fine

but the problem was the same at runtime.

 

I used sipdemo sample to  start as I don’t have big needs. But I’m facing trouble when on incoming call I have to reopen the activity layout, if the application issendtobackground. I only need to deal with wifi, sip registration, a little list of callable addresses.

Two possibilities, the user start the activity and select the adresse to call and a layout is displayed

Or an incoming call is received (unlock phone by slider if needed, select answer or not) and display the same layout

 

Any help would be appraciated

Thanks

Gaetan

 

Dev environment win7, eclispe




_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]