Web Niraj
  • Facebook
  • Flickr
  • Github
  • Linkedin
  • Twitter
  • YouTube
Online portfolio, code examples and developer blog
  • About
  • Contact
  • Portfolio
  • WordPress
Search the site...
  • Home
  • Blog
  • Screen Recording on Nexus 5 Using Android 4.4 KitKat and Android SDK

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

9

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):

Android, Android 4.4 KitKat, Google Nexus 5, Video

9 comments on “Screen Recording on Nexus 5 Using Android 4.4 KitKat and Android SDK”

  1. Ben Whaley says:
    December 18, 2013 at 9:03 PM

    What do you do if you open the ADB application and it scrolls down the command prompt then exits?

    Reply
    • Niraj Shah says:
      December 18, 2013 at 9:09 PM

      ADB is a command line tool, it cannot be opened directly. Try passing arguments (like the ones above), instead of opening directly.

      Reply
  2. Ben Whaley says:
    December 19, 2013 at 5:46 PM

    Which application do I use to pass the arguments? Sorry it is not quite clear.

    Reply
  3. Ben Whaley says:
    December 19, 2013 at 5:49 PM

    Also do you need to root your Nexus 5?

    Reply
    • Niraj Shah says:
      December 19, 2013 at 6:41 PM

      You don’t need to have a rooted phone for this to work. Find where ADB is on your computer and use Terminal / Command Prompt to enter “adb shell”. This will start the adb console. Then, just enter one of the “screenrecord” commands shown above.

      Reply
  4. Ben Whaley says:
    December 19, 2013 at 8:41 PM

    I can find the ADB is but when I enter “adb shell” it says that it is not recognised as an internal or external command, operable program or batch file.

    Reply
    • Niraj Shah says:
      December 19, 2013 at 9:40 PM

      As I already said, you need to use “Terminal” or “Command Prompt” (depending on your OS) to run ADB.

      Reply
  5. Ben Whaley says:
    December 20, 2013 at 8:48 PM

    Yeah it comes up with “adb shell is not recognised as an internal or external command, operable program or batch file” on command prompt.

    Reply
    • Niraj Shah says:
      December 20, 2013 at 10:45 PM

      You’re not running the command from the correct place it seems. Just for you, I’ve added the new Further Instructions section above with a new video. If you cannot still figure it out, look for more ADB related videos on YouTube.

      Reply

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

StackExchange / StackOverflow

profile for Niraj Shah on Stack Exchange, a network of free, community-driven Q&A sites

Support Me

Buy Me a Coffee

PSN Profile

Tags

ACL Amazon Web Services Android Android 4.4 KitKat Android 5.0 Lollipop Apache Backup Bash Bug Command Line Cordova cPanel / WHM Facebook Facebook Graph API Facebook PHP SDK 4.0 Facebook Social Plugins Fan Page Flash Geolocation Google Nexus 5 Hacking HTML5 Input Sanitization iOS JavaScript jQuery Laravel 5 Laravel 5.2 Linux Mac OS NodeJS Parse PDF PHP Plugin Portfolio Review Security Server SSH SSL Sysadmin Tutorial WordPress WordPress Plugins
© 2011-2025 Niraj Shah
  • Blog
  • Portfolio
  • WordPress
  • About Me
  • Contact Me
  • Privacy Policy
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Privacy Policy