Wednesday, July 15, 2015

Useful Tips: How to Record Screen Videos

I have been recording videos to show the screen animations.  The easiest and best way to do this is via the adb and a terminal window.  I have a preference for Linux so I use Cygwin for my terminal, but it will work in the windows terminal for the DOS fans out there.

  1. Attach a debuggable device or start an emulator
  2. Open your favorite terminal (You will need your environment variables setup to find the adb commands).
  3. In the terminal:, enter “adb shell screenrecord /sdcard/movie.mp4”. You can use any movie name that is Linux compliant.
  4. You are recording at this point so go to the device/emulator and perform the actions You want recorded.
  5. Back in the terminal:
    •  crtl-c to stop the recording.
    • change directory to the location where you want the movie.
    • enter “adb pull /sdcard/movie.mp4

Tada! Your video is now on the computer and available for viewing.

No comments :

Post a Comment