How to programmatically record video on an application screen in android

I am developing an Android application. In my application, I have to capture the screen animation in a few seconds as a video in program mode. Is it possible? When I googled all the code to start the camera in video mode or capture the system screen as video.

I need to record the screen of my application only when run in an emulator or device, and I have to store it in video format in SDCard, and then to play the video as needed.

Can anyone tell if this is possible programmatically? if so, tell me how to do it. if not, offer some suggestion for this task.

+6
source share
1 answer

I built the application and wanted to demonstrate it to a large group of people at work. I bought Screencast to record. This application only works on root phones. However, this proves that you can do what you want. If nothing else, I suppose you could call the application from your application using intent.

0
source

Source: https://habr.com/ru/post/893046/


All Articles