Code example for VideoView

Methods: getCurrentPositionsuspend

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 
    public void onDestroy() {