Code example for Handler

Methods: removeCallbacksAndMessages

0
    } 
 
    @Override 
    public void onPause() { 
        mHasPaused = true;
        mHandler.removeCallbacksAndMessages(null);
        mVideoPosition = mVideoView.getCurrentPosition();
        mVideoView.suspend();
        super.onPause(); 
    } 
 
    @Override 
    public void onStop() { 
        if (mProgress != null) {
            mProgress.dismiss();
            mProgress = null;
        } 
        super.onStop(); 
    } 
 
    @Override