Code example for ConcurrentLinkedQueue

Methods: remove

0
 
  public final void removeEventListener(ShakeEventListener paramShakeEventListener)
  { 
    if (Looper.getMainLooper().getThread() != Thread.currentThread())
      throw new RuntimeException("startCommand must be called on the UI thread");
    this.mEventListeners.remove(paramShakeEventListener);
  } 
 
  public final boolean start() 
  { 
    if (Looper.getMainLooper().getThread() != Thread.currentThread())
      throw new RuntimeException("startCommand must be called on the UI thread");
    if ((this.mSensorManager != null) && (!this.mIsSensorRegistered))
      this.mIsSensorRegistered = this.mSensorManager.registerListener(this, this.mSensorManager.getDefaultSensor(1), 3);
    return this.mIsSensorRegistered;
  } 
 
  public final boolean stop() 
  { 
    if (Looper.getMainLooper().getThread() != Thread.currentThread())
      throw new RuntimeException("startCommand must be called on the UI thread");