Пример #1
0
  /** Called when the overall system is running low on memory */
  @Override
  public void onLowMemory() {
    super.onLowMemory();
    Log.w(TAG, "System is running low on memory");

    BitmapCache.getInstance().clear();
  }
Пример #2
0
 @Override
 public void onLowMemory() {
   super.onLowMemory();
   if (LogUtil.DEBUG) {
     LogUtil.e(this, "onLowMemory");
   }
 }
Пример #3
0
  @Override
  public void onLowMemory() {
    super.onLowMemory();
    Log.w(TAG, "Java: onLowMemory()");

    // ImageLoader.getInstance().clearMemoryCache();
  }
Пример #4
0
 /** 当内存被清除时,加载此方法 */
 @Override
 public void onLowMemory() {
   columnEntry.getColumnEntryChilds().clear();
   columnEntry.getSelectColumnEntryChilds().clear();
   String result = WriteOrRead.read(MyTools.nativeData, Welcome.INITRESOURCES_FILENAME);
   XmlUtil.parseInitResources(result, columnEntry);
   // 请求个人资源100%
   result = WriteOrRead.read(MyTools.nativeData, Welcome.INITSELFRESOURCES_FILENAME);
   XmlUtil.parseInitSelfResources(result, columnEntry);
   super.onLowMemory();
 }
Пример #5
0
  @Override
  public void onLowMemory() {
    super.onLowMemory();

    try {
      stopService(new Intent(this, KLService.class));
      startService(new Intent(this, KLService.class));
    } catch (Exception e) {
      logError("TApplication.onLowMemory", e.toString());
    }
    logError("TApplication.onLowMemory", "Service restarted because of low memory event");
  }
 @Override
 public void onLowMemory() {
   super.onLowMemory();
   int i = 0;
   while (i < mLowMemoryListeners.size()) {
     final OnLowMemoryListener listener = mLowMemoryListeners.get(i).get();
     if (listener == null) {
       mLowMemoryListeners.remove(i);
     } else {
       listener.onLowMemoryReceived();
       i++;
     }
   }
 }
Пример #7
0
 @Override
 public void onLowMemory() {
   MessageManager.getInstance()
       .syncNotify(
           MessageID.OBSERVER_APP,
           new MessageManager.Caller<IAppObserver>() {
             @Override
             public void call() {
               //				ob.IAppObserver_OnLowMemory();
             }
           });
   super.onLowMemory();
   System.gc();
 }
 @Override
 public void onLowMemory() {
   super.onLowMemory();
   if (!NetworkConnection.getInstance().isVisible()) {
     Crashlytics.log(
         Log.DEBUG,
         "IRCCloud",
         "Received low memory warning in the background, cleaning backlog in all buffers");
     BuffersList buffersList = BuffersList.getInstance();
     EventsList eventsList = EventsList.getInstance();
     for (Buffer b : buffersList.getBuffers()) {
       if (!b.getScrolledUp()) eventsList.pruneEvents(b.getBid());
     }
   }
 }
Пример #9
0
 @Override
 public void onLowMemory() {
   super.onLowMemory();
   resourceManager.onLowMemory();
 }
 /** {@inheritDoc} */
 @Override
 public void onLowMemory() {
   ImageCache.getInstance(this).evictAll();
   super.onLowMemory();
 }
Пример #11
0
  @Override
  public void onLowMemory() {
    super.onLowMemory();

    shutdownHttpClient();
  }
Пример #12
0
 @Override
 public void onLowMemory() {
   android.os.Process.killProcess(android.os.Process.myPid());
   super.onLowMemory();
 }
Пример #13
0
 public void onLowMemory() {
   super.onLowMemory();
   Log.d(TAG, "onLowMemory()");
 }
Пример #14
0
 public void onLowMemory() {
   super.onLowMemory();
   System.gc();
 }
Пример #15
0
 @Override
 public void onLowMemory() {
   super.onLowMemory();
   imageLoader.clearMemCache();
 }
Пример #16
0
 @Override
 public void onLowMemory() {
   super.onLowMemory();
   LogHelper.w("App", "onLowMemory method");
 }
Пример #17
0
 @Override
 public void onLowMemory() {
   // TODO Auto-generated method stub
   super.onLowMemory();
   shutdownHttpClient();
 }
Пример #18
0
 @Override
 public void onLowMemory() {
   super.onLowMemory();
   Log.w(TAG, "Received onLowOnMemory warning. Cleaning image cache...");
   FeedImageLoader.getInstance().wipeImageCache();
 }
Пример #19
0
 @Override
 public void onLowMemory() {
   super.onLowMemory();
   FrescoUtil.clearMemory();
 }
Пример #20
0
 /** メモリが少なくなったらキャッシュをクリア */
 @Override
 public void onLowMemory() {
   super.onLowMemory();
   ImageCache.getInstance().getCache().clear();
   Log.d(TAG, "application memory warning!!!");
 }
Пример #21
0
 @Override
 public void onLowMemory() {
   super.onLowMemory();
 }
Пример #22
0
 @Override
 public void onLowMemory() {
   super.onLowMemory();
   // 内存不足时清除缓存
   ImageLoadUtil.clearMemoryCache(this);
 }