|
@@ -69,7 +69,7 @@ public class WdklSipService extends Service {
|
|
|
|
|
|
//首次调用必须使用 Factory相关方法
|
|
|
//这里开户调试日志及设置路径
|
|
|
- String basePath = getFilesDir().getAbsolutePath();
|
|
|
+ String basePath = BaseApplication.appContext.getFilesDir().getAbsolutePath();
|
|
|
Factory.instance().setLogCollectionPath(basePath);
|
|
|
Factory.instance().enableLogCollection(LogCollectionState.Enabled);
|
|
|
Factory.instance().setDebugMode(true, getString(R.string.app_name));
|
|
@@ -184,7 +184,7 @@ public class WdklSipService extends Service {
|
|
|
|
|
|
private void configureCore() {
|
|
|
// We will create a directory for user signed certificates if needed
|
|
|
- String basePath = getFilesDir().getAbsolutePath();
|
|
|
+ String basePath = BaseApplication.appContext.getFilesDir().getAbsolutePath();
|
|
|
String userCerts = basePath + "/user-certs";
|
|
|
File f = new File(userCerts);
|
|
|
if (!f.exists()) {
|