How to record a screen with Android Studio

I connect my phone to Android Studio and code. I want to record my phone screen. I saw this one , but this button is disabled in my android studio. I can record screens, but I can not record. Can someone help me with this?

UPDATE

enter image description here

So it is in my Android studio. The button is disabled.

+47
android android-studio screen-record
Jul 21 '15 at 18:54
source share
7 answers

Go to menu

  • ViewTool WindowsAndroid

You will find the record icon in the lower left.

enter image description here

If you are using AVD, make sure "Use the main GPU" is disabled.

To record your application video:

  • Launch the application as described in the section “Launching the application in debug mode”.
  • Click Android to open the Android DDMS tool window.
  • Click "Screen Recording" on the left side of the Android DDMS tool window.
  • Click "Start recording."
  • Interaction with your application.
  • Click Stop Recording.
  • Enter the name of the file to record and click OK.

Source: https://developer.android.com/tools/debugging/ddms.html

+36
Jul 21 '15 at 19:13
source share

Your device may not support the screen recorder, there are many devices that do not support the screen recorder, so this is a problem with the device. If you want to record the screen of your application, just run the application on the Android emulator or in genymotion mode and start the desktop screen recorder and adjust the desktop screen to match the emulator. There are many screens for the PC, but I prefer the studio studio 8. Thanks

+11
Jul 21 '15 at 19:07
source share

Android SDK emulators do not support writing: https://code.google.com/p/android/issues/detail?id=61682

The screenrecord command screenrecord simply missing:

 i:\>adb -e shell root@generic_x86_64:/ # screenrecord /system/bin/sh: screenrecord: not found 127|root@generic_x86_64:/ # 

On Windows, I suggest using an alternative Fraps screen capture tool. This is an amazing tool with too many years of history. I am not connected with them, I just used it “on the same day” when I played a lot of games. On the Movies tab, add the Video Capture hotkey and use it to start / stop recording. The FPS counter will be red during recording.

+8
Sep 03 '16 at 15:42
source share

I had the same problem. It was resolved when I did not start, but debugged the application.

Debug Icon in Android Studio IDE

After debugging your application, the icon will be turned on even if you just launch the application without debugging.

I assume that this needs to be done for every application that you are developing, as it should be a debugging function or something like that.

* Please note that in this image I am using Android Studio post 2.0, but when this problem arose with me, I used pre 2.0, so it does not matter.

+3
May 13 '16 at 9:03
source share

In new versions of Android Studio, an external Android phone with a resolution of at least 720p is required for an external screen. Since the internal runs in virtual memory cannot be recorded and therefore disabled, since they cannot simultaneously record and run the emulator. I am running Android Studio 2.3.2, which is the last one and the one I came across. But when I closed the emulator and connected my HTC One M9, it automatically turned on the record button to record the phone instead of the emulated device.
Check the images below and the difference between them in red circles:

The first image is an emulated device on a computer: The emulated device cannot record the screen

The second image, a personal device connected to a computer: The personal device is connected and ready for recording from Android Studio

+3
May 22, '17 at 19:45
source share

In the case of the emulator, I experienced that you should set the DirectX end-user runtime

Installed it for another application, and, fortunately, Android Sceer Record is working fine and not greyed out!

Hope this help helps other people.

0
Feb 11 '17 at 15:41
source share

Maybe you should just change your phone, for example:

When using HUAWEI, screen recording is disabled:

Image1

But when changing to Nubia, it works!

Image2

-one
Dec 6 '17 at 2:11 on
source share



All Articles