[Top][All Lists]

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

Re: [Linphone-developers] RuntimeException when trying to initialize the

From: Sylvain Berfini
Subject: Re: [Linphone-developers] RuntimeException when trying to initialize the linphone core for Android
Date: Tue, 17 Jan 2017 16:08:42 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0

Hi Yonatan,

Did you add the following permission into your AndroidManifest.xml file ?

<uses-permission android:name="android.permission.CAMERA"/>


Sylvain Berfini
Software Engineer @ Belledonne Communications
Le 17/01/2017 à 13:05, Yonatan Nir a écrit :
I'm using the precompiled version of Linphone for an Android app.

When trying to initialize and get an instance of the core like this:

linphoneCore = LinphoneCoreFactory.instance().createLinphoneCore(ourLinphoneCoreListener, context);

I sometimes get this exception:

Error: cannot retrieve cameras information (busy ?)java.lang.RuntimeException: Fail to connect to camera service

This exception comes from this line inside Linphone itself:
The line is simply opening a camera:  
Camera c =;

What can be done about it? Now it crashes my app when it happens.

Thank you,

Linphone-developers mailing list

reply via email to

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