android studio screen record,How to record screen with Android Studio

问题

I connect my phone to Android Studio and code. I want to record my phone screen. I saw this but that button is disabled in my Android Studio. I can capture screens but can't record. Can someone help me with this?

UPDATE

bb185e16c198cccf459b763716b0d09c.png

This is how it is there in my Android studio. The button is disabled

回答1:

Maybe your device does not support the screen recorder, there are many devices which does not support screen recorder thus this is device issue. If you want to record your app screen then simply run the app on android emulator or on genymotion and start your desktop screen recorder and adjust the desktop screen to fit emulator. There are many screen recorder for PC but i prefer cam studio 8.

Thanks

回答2:

Go to your menu

View -> Tool Windows -> Android

You will find the record icon at the bottom left corner.

562948f8744e5c210736a6938cdba920.png

If you are using an AVD, make sure "Use host GPU" is disabled.

To take a video recording of your app:

Start your app as described in Run your App in Debug Mode.

Click Android to open the Android DDMS tool window.

Click Screen Record on the left side of the Android DDMS tool window.

Click Start Recording.

Interact with your app.

Click Stop Recording.

Enter a file name for the recording and click OK.

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

回答3:

Now you can also record video from Android emulator to follow below option:

Select more option

Then select Record screen option.

Check below screenshot:

回答4:

In newer versions of Android Studio it requires an external Android phone to record screen from preferably with a resolution of at least 720p. Since the internal runs on the virtual memory it can't be recorded and is therefore disabled as it can't both record and run emulator at same time.

I'm running Android Studio 2.3.2 which is the latest and the one I experienced this on. But when I closed the emulator and connected my HTC One M9 it automatically enabled recording button to record the phone instead of the emulated device.

Check the images below and the difference between them in the red circles:

First image, emulated device on the computer:

Second image, personal device connected to computer:

回答5:

Android SDK Emulators don't support recording:

https://code.google.com/p/android/issues/detail?id=61682

The screenrecord command is 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 the Fraps generic screen capture tool as an alternative. It's an awesome tool with too many years of history to count. I'm not affiliated with them, I just used it "back in the day" when I was gaming a lot. On the Movies tab add a Video Capture Hotkey and use that to start/stop the recording. The FPS counter will be red while recording.

回答6:

Maybe you should just change a phone,like this:

When using HUAWEI,the screen record is disabled:

But when changing to Nubia, it works!

回答7:

I had the same problem. It was solved when I didn't run but debugged de app.

Once you have debugged your app, the icon will be enabled even if you just run your app without debugging.

I guess this has to be done for each app you develop, as it must be a debugging feature or something like that.

*Note that at this image I'm using Android Studio post 2.0, but when this problem happened to me I was using pre 2.0, so that should not matter.

回答8:

Open Android emilator,

Click to right sidebar more button "..."

Open new window, Record Screen and start record

It's OK

https://developer.android.com/studio/run/emulator.html

回答9:

In case of emulator I experienced that you should install DirectX End-User Runtime

Installed it for another application and luckily also Android Sceer Record is working fine and isn't greyed out!

Hope this help some other people

来源:https://stackoverflow.com/questions/31547350/how-to-record-screen-with-android-studio

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值