Code example for Handler

Methods: getLooper

0
                mGestureDetector = SensorGestureDetector.this;
        } 
 
        SensorGestureHandler(Handler handler)
        { 
            super(handler.getLooper());
                mGestureDetector = SensorGestureDetector.this;
        } 
    } 
 
 
    /** 
     * Creates a GestureDetector with the supplied listener.  
     *  
     * This variant of the constructor should be used  
     * from a non-UI thread (as it allows specifying the Handler). 
     *  
     * @param listener the listener invoked for all the callbacks, this must not be null. 
     * @param handler the handler to use, this must not be null. 
     */ 
    public SensorGestureDetector(OnSensorGestureListener listener, Handler handler)