Code example for HandlerThread

Methods: getLooperisAlivestart

0
    mUnknownPicture = unknownPicture;
    mContext = context;
 
    mImageCache.setUnknownPicture(mUnknownPicture);
 
    if (!handlerThread.isAlive())
    { 
      handlerThread.start();
    } 
    mImageLoadHandler = new ImageLoadHandler(handlerThread.getLooper());
  } 
 
  public void onDestroy() 
  { 
    // Remove any unprocessed messages 
    mImageLoadHandler.removeMessages(0);
    // Clear the cache 
    mImageCache.clear();
  } 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE