问题
I want to know that how can i record video of my ongoing screen in android using Kitkat 4.4. With lot's of search on Google and SO i did not get anything.
I already saw so many link which tell's to record video by connecting device with system using USB and then writing some command in command window, but i want to record video using device only simple like when user's press record button it starts recording and when it press stop button it should stop recording.
I saw some same kind of apps on Google play like
https://play.google.com/store/apps/details?id=com.slimdroid.screenrecoder
https://play.google.com/store/apps/details?id=app.akexorcist.screenrecorder
So basically i just want some guidance that how can i achieve this, if any one have any code example then that will be great help.
Thank you in advance.
回答1:
You can go to the command prompt and locate to your sdk folder. Then fire following command
adb shell screenrecord /sdcard/demo.mp4
This will create a video file name demo.mp4 in your sd-card, and it will record whatever you do after firing above command.
To stop the recording just press Ctrl+C.
来源:https://stackoverflow.com/questions/23807408/how-to-record-video-of-my-ongoing-screen-on-kitkat-4-4