Is it possible to record screen video of current running activity from same activity ?
I know how to take screenshot of current activity but don’t have any idea about taking screen video record.
How would I start with it ? I don’t know how to start it.
Is it possible to record screen video of current running activity from same activity
Share
EDIT: This answer is superceded by the answer below from Danpe.
Programmatically recording video from within your app will require root access. You’ll notice that the apps available to do this in the Play Store prominently list “REQUIRES ROOT” in their app descriptions. You’ll also notice that there may also be some specific hardware requirements for this approach to work (“Does not work on Galaxy Nexus or Tegra 2/3…” — from the description of the Screencast Video Recorder app.
I have never written this code myself, but I’ve put together a very high level idea of the approach required. It appears from this post that you have to access the frame buffer data via “/dev/graphics/fb0”. The access mode for the frame buffer is 660, which means that you need root access to get to it. Once you have root access, you can use the frame buffer data to create screen shots (this project might work for this task) and then create video from these screenshots (see this other SO question on how to create video from an image sequence).
I’ve used the Screencast app and it works well on a Samsung Note. I suspect that this is the basic approach they’ve taken.