|
From: | Yonatan Nir |
Subject: | [Linphone-developers] Resource not found exception when trying to start LinphoneService |
Date: | Sun, 7 Jun 2015 13:44:37 +0000 |
I am using the LibLinphone library to create some VOIP app. The library is an external jar in the private libraries section in Eclipse.
I'm trying to use the `ChatStorage` class to handle chat messages which is a part of the library. When trying to start the service I get the exception: java.lang.RuntimeException: Unable to create service org.linphone.LinphoneService: android.content.res.Resources$NotFoundException: Resource ID #0x7f0a003b The problem is that the library is in an external jar. From logcat I could see that the problem was caused because of line 137 in the service `onCreate` method and only online I could find the source code of the service in this link: https://github.com/BelledonneCommunications/linphone-android/blob/master/src/org/linphone/LinphoneService.java There I could see that line 137 is: LinphoneCoreFactory.instance().enableLogCollection(!(getResources().getBoolean(R.bool.disable_every_log))); What can I do when we're talking about an external jar? Can I somehow edit its content and add this bool resource if its not there? |
[Prev in Thread] | Current Thread | [Next in Thread] |