Code example for Handler

Methods: removeCallbacksAndMessages

0
            // ignore. can happen if the external volume is already detached. 
        } 
    } 
 
    public void onPause() { 
        mHandler.removeCallbacksAndMessages(null);
        setBookmark(mVideoView.getCurrentPosition(), mVideoView.getDuration());
 
        mVideoView.suspend();
    } 
 
    public void onResume() { 
        mVideoView.resume();
    } 
 
    public void onDestroy() { 
        mVideoView.stopPlayback();
    } 
 
    public boolean onError(MediaPlayer player, int arg1, int arg2) {
        mHandler.removeCallbacksAndMessages(null);