Site icon Web Niraj

Screen Recording on Nexus 5 Using Android 4.4 KitKat and Android SDK

Android 4.4 KitKat allows developers to do direct screen recordings of their device, allowing you to easily make how-to videos for your application, or to record device issues / bugs. In order to record your device, you need to install the Android SDK on your computer and download the latest updates.

I won’t go through this process as it’s covered in the Android Documentation.

Then, connect your device to your computer and run ADB (see example below, line #2). From the ADB shell, you can run a command to record your screen for a set amount of duration or using a specific bitrate. I’ve included a few examples below:

You can an example of a screen recording on my Google+ page or below, recorded in full HD using the above methods. Remember to watch it in 1080p HD.

You can also enable “Show touches” from the [Developer options] menu in [Settings] so that your touches on the screen come through in the video you record. See the below view for an example:


Further Instructions

To clarify the process of running the process above, here are the summarised steps:

  1. Install the Android SDK if it hasn’t been already.
  2. Open up Terminal (Mac) or Command Prompt / MS DOS (Windows)
  3. Navigate to where the Android SDK was installed (use cd on Terminal or dir on Command Prompt / MS DOS)
    e.g. cd /Developers/android-sdk-macosx/ on Mac or: dir c:\android-sdk on MS DOS
  4. ADB is located in a folder called platform-tools. Move into that directory using the cd or dir command above.
  5. Run the ADB shell by entering ./adb shell into Terminal / MS DOS
    • If a device is correctly connected, ADB should enter the shell correctly. Otherwise you’ll see a “Device not connected” error.
  6. Enter a screenrecord command from above to start a screen recording of your device.
    e.g. screenrecord --verbose --time-limit 10 /sdcard/screen.mp4 as shown in the video

The video below demonstrates steps 2-5:

Android 10

There is an easier way to enable screen recording on Android 10, as it’s now been built into the UI. However, you still need the Android SDK to enable it. You can run the below command line to enable the screen recording UI.

adb shell settings put global settings_screenrecord_long_press true

The above option will enable the “Screenshot” button from the power menu (down down the power button to see the button). If you press and hold the “Screenshot” button, you will see a new screen recording menu (see below):

Exit mobile version