我在我的项目中有一个问题,当我在我的应用程序中加载oovooLibrary时,它没有响应5秒,然后崩溃,没有任何错误。请帮我这个忙。
我的代码是
ooVooClient.setContext(app);
ooVooClient.setLogger(this, LoggerListener.LogLevel.Debug);
try {
// I am getting no responce for this line
mConferenceCore = ooVooClient.sharedInstance();
} catch (InstantiationException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
}发布于 2016-06-14 05:52:49
我已经修复了这个问题,我从MainActivity类调用了MainActivity,所以它不接受这个上下文- app (getApplicationContext()),所以我将它禁用在MainApplication.java中,并将其存储在静态变量中,并在其他类中使用它。
发布于 2016-06-09 09:46:41
private ooVooClient sdk = null;
private ApplicationSettings settings = null;
if (!ooVooClient.isDeviceSupported()) {
return;
}
settings = new ApplicationSettings(this);
ooVooClient.setLogger(this, LogLevel.fromString(getSettings().get(ApplicationSettings.LogLevelKey)));
ooVooClient.setContext(this);
sdk = ooVooClient.sharedInstance();https://stackoverflow.com/questions/37722231
复制相似问题