예제 #1
0
 @Override
 public void onCreate() {
   super.onCreate();
   AndroidFactory.setApplicationContext(getApplicationContext());
   Logger.initialize(getApplicationContext());
   Logger.v(TAG, "onCreate() entry");
   if (!ApiManager.initialize(getApplicationContext())) {
     Logger.e(TAG, "onCreate() ApiManager initialization failed!");
   }
   ContactsListManager.initialize(getApplicationContext());
   startService(new Intent(this, ApiService.class));
   // Init UnreadMessageManager
   UnreadMessageManager.getInstance();
   EmoticonsModelImpl.init(getApplicationContext());
   controlRcseComponent();
   Logger.v(TAG, "onCreate() exit");
 }
예제 #2
0
  @Override
  public void onCreate() {
    // Set application context
    AndroidFactory.setApplicationContext(getApplicationContext());

    // Instantiate the settings manager
    RcsSettings.createInstance(getApplicationContext());

    // Set the logger properties
    Logger.activationFlag = RcsSettings.getInstance().isTraceActivated();
    Logger.traceLevel = RcsSettings.getInstance().getTraceLevel();

    // Set the terminal version
    TerminalInfo.setProductVersion(AppUtils.getApplicationVersion(this));

    // Start the core
    startCore();
  }