Exemplo n.º 1
0
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    app = (SAFApp) this.getApplication();
    TAG = SAFUtils.makeLogTag(this.getClass());
    addActivityToManager(this);
  }
Exemplo n.º 2
0
  @Override
  @TargetApi(14)
  public void onTrimMemory(int level) {
    if (SAFUtils.isICSOrHigher()) {
      super.onTrimMemory(level);

      if (level >= ComponentCallbacks2.TRIM_MEMORY_RUNNING_LOW) {
        app.imageLoader.clearCache();
      }
    }
  }