@Override
  public void onCreate() {

    super.onCreate();

    AVOSCloud.initialize(this, EXTRA_APP_KEY, EXTRA_MASTER_KEY);
    AVAnalytics.enableCrashReport(this, true);
    AVOSCloud.setLastModifyEnabled(true);
    AVOSCloud.setDebugLogEnabled(true);

    messageHandler = new MessageHandler();

    user = this.getSharedPreferences(EXTRA_USER, MODE_PRIVATE);
    settings = this.getSharedPreferences(EXTRA_SETTINGS, MODE_PRIVATE);
    call = this.getSharedPreferences(EXTRA_CALL, MODE_PRIVATE);
    record = this.getSharedPreferences(EXTRA_RECORDS, MODE_PRIVATE);

    userEditor = user.edit();
    settingsEditor = settings.edit();
    callEditor = call.edit();
    recordEditor = record.edit();

    if (rtcEngine != null) {
      rtcEngine.enableNetworkTest();
    }
  }
Exemple #2
0
  @Override
  public void onCreate() {
    super.onCreate();
    mContext = getApplicationContext();
    AVOSCloud.initialize(this, "sTcSMqHmJTh84xK1kho06ry5-gzGzoHsz", "SKJ69RQ0AUaaNcs2rxtxSOQV");
    RealmConfiguration myConfig =
        new RealmConfiguration.Builder(getContext())
            .name("myRealm")
            .schemaVersion(2)
            //                .setModules(new MyCustomSchema())
            .build();

    Realm.setDefaultConfiguration(myConfig);
  }
Exemple #3
0
 private void initLeanCloud() {
   AVObject.registerSubclass(AVPost.class);
   AVOSCloud.initialize(this, Keys.LC_APP_ID, Keys.LC_APP_KEY);
   AVOSCloud.setDebugLogEnabled(true);
 }