@Override
  protected void onPause() {
    super.onPause();

    mPlaybackManager.pause();
    mPlaybackManager.hideMediaController();
  }
  @Override
  protected void onDestroy() {
    mPlaybackManager.dispose();
    mPlaybackHandler = null;

    super.onDestroy();
  }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_video_preview);
    initActionBar();
    Intent i = getIntent();
    if ((i != null) && (i.getExtras() != null)) {
      mFileName = i.getExtras().getString(FileNameArg);
    }
    Log.e("", "size--------------------------------" + new File(mFileName).length());
    mVideoView = (AdaptiveSurfaceView) findViewById(R.id.video_preview_view);

    mPlaybackManager = new VideoPlaybackManager(this, mVideoView, mPlaybackHandler);
    mPlaybackManager.setupPlayback(mFileName);
  }
 @Override
 public boolean onTouchEvent(MotionEvent event) {
   mPlaybackManager.showMediaController();
   return false;
 }