0

我在我的项目中遇到问题,当我在我的应用程序中加载 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();
        }
4

2 回答 2

0
  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://github.com/oovoodev/Android-SDK-Sample

于 2016-06-09T09:46:41.670 回答
0

我已经解决了这个问题,我是ooVooClient.setContext(app);MainActivity类中调用的,所以它不接受那个上下文 - app( getApplicationContext()),所以我将它初始化并将它MainApplication.java存储在静态变量中,并在其他类中使用它。

于 2016-06-14T05:52:49.937 回答