When you click on the button, this method works:
public void onRecordVideo(View v) { if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT)) { Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); File mediaFile = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/myvideo.mp4"); videoUri = Uri.fromFile(mediaFile); intent.putExtra(MediaStore.EXTRA_OUTPUT, videoUri); startActivityForResult(intent, VIDEO_CAPTURE); } else { Toast.makeText(this, "Нет камеры", Toast.LENGTH_LONG).show(); } } And he goes into the camera, and when you click on the checkmark, goes back. And the video plays in a VideoView .
Question: Is it possible to make it so that when you click on a button, a new page does not open and opens in VideoView or in some other block, but only in this Activity ? If so, how?