# AndroidScreenRecordAndCrop **Repository Path**: jerryzcx/AndroidScreenRecordAndCrop ## Basic Information - **Project Name**: AndroidScreenRecordAndCrop - **Description**: android screen crop demo - **Primary Language**: Android - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-09-07 - **Last Updated**: 2026-08-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: Android ## README # 原工程地址:https://github.com/junyuecao/AndroidScreenRecordAndCrop # 功能 录屏 # 我的修改: 1. 添加了录制坐标限定的功能,通过设置left width top height四个参数(百分比) # 问题 1. 在8.0.0的MotoZ上录制crash (TODO:有时间查LOG:android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.), 而在5.1.1的nubia NX507J上测试是OK的 2. 启动时提示MainActivity class not found时,将instant run关闭再试 # CroppedScreenRecorder This project is to demonstrate how to record the screen using MediaProjectionManager and using OpenGL ES to crop the video footage. 1. Grant all permissions 2. Click 'Start' button 3. Touch and hold the record button to record screen 4. Click cancel to finish screen projection. The recorded videos will be in `test` folder under the sdcard. The recorded video is like this (no status bar and nav bar): ![Sample](https://github.com/junyuecao/private-static/blob/master/recorder-sample.gif?raw=true) Some of the source code is from https://github.com/google/grafika