Record a video
Figure 1. Record a video of your app
Logcat lets you record an MP4 video from your hardware device for a maximum of three minutes. You can, for example, use the video for your marketing materials or for debugging.
Audio is not recorded with the video file.
Video recording is not available for devices running Wear OS.
To record a video of your app, do the following:
- Open an app project.
- Run the app on a hardware device.
- Click View > Tool Windows > Logcat.
- Interact with the display on the hardware device to stage the start of the video.
- Click Screen Record in the left side of the Logcat window.
- In the Screen Recorder Options dialog, set the recording options:
- Bit Rate: Enter a bit rate. The default is 4 Mbps.
- Resolution: Enter a width and height value in pixels. The value must be a multiple of 16. The default is the resolution of the device.
- Show Taps: Enables visual feedback for taps.
- Click Start Recording to start the recording.
- Click Stop Recording to stop the recording.
- In the Save As dialog, save the MP4 file.
- In the Screen Recorder dialog, click one of the buttons to show the file location, open the recording in a player, or dismiss the dialog.
当前内容版权归 Google开发者中心 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Google开发者中心 .