How can I record the screen of an Android device?

I want to create an application that will allow users of Capture Screentheir Android device. like any screen software we used on the PC, please help me

Edit: 1

here Screen capture refers to Screen recording of device screen as video not snapshots of screen.

+5
source share
4 answers

the only way to do this is with a root device.

try reading this answer: Software screencapture on a mobile device

EDIT 1:

screen capture, since the video is the same, this screen capture is only one image.

EDIT 2:

, , Screencast ShootMe. startActivity(new Intent(String action)); .

:

+2

, , . ,

adb shell screenrecord /sdcard/demo.mp4

adb .

+8

Android 5.0 (Lollipop) root, MediaProjection. .

+3

:

Regular Android applications do not have enough permission to capture the frame buffer (in particular, they are not members of the AID_GRAPHICS group), so you CANNOT display the screen from the Android application without bypassing the privilege problem. Applications do this in one of two ways: either using root, or by starting the server through the ADB interface. Thus, this can be done without using root, but you need to start your own server and connect to it from your application (and, obviously, it is safe to deal with the security consequences)

+1
source

All Articles