コード例 #1
0
  public void postOnCreate() {
    TiConfig.LOGD = systemProperties.getBool("ti.android.debug", false);

    // Register the default cache handler
    File cacheDir = new File(new TiFileHelper(this).getDataDirectory(false), "remote-image-cache");
    if (!cacheDir.exists()) {
      cacheDir.mkdirs();
    }
    TiResponseCache.setDefault(new TiResponseCache(cacheDir.getAbsoluteFile(), this));
  }