Example #1
0
  public void onCreate() {
    mApplication = this;
    Logger.setDebug(true);
    Logger.getLogger().setTag("wechat");
    ImageCacheUtil.init(this);
    Thread.setDefaultUncaughtExceptionHandler(AppException.getAppExceptionHandler());
    L.disableLogging();
    mNotificationManager =
        (NotificationManager) getSystemService(android.content.Context.NOTIFICATION_SERVICE);
    CookieStore cookieStore = new PersistentCookieStore(this);
    QYRestClient.getIntance().setCookieStore(cookieStore);

    Intent intent = new Intent();
    intent.setAction("tools.NetworkState.Service");
    startService(intent);
  }