I want to play a video in my Activity using a VideoView,and make it fullscreen and landscape mode (with hiding virtual button and stat
You can use this for BackButton:
closeButton = (Button) findViewById(R.id.buttonClose);
closeButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
Log.d("VideoPreview", "onClick Close Button");
VideoFullscreenActivity.super.onBackPressed();
}
});
Take a look: How to close a VideoView Activity (currently have to press back twice)