Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Emulator device screen capture screen not available

Using Android Studio in Windows. Trying to get the screenshot.

  1. Run my App in Debug Mode.
  2. Open the Android DDMS tool window.
  3. Click Screen Capture on the left side of the Android DDMS tool window.

When the Device Screen Capture window appears, "save" button is disabled and shows Screen not available.

like image 921
Shuvo Joseph Avatar asked Feb 01 '15 08:02

Shuvo Joseph


2 Answers

In the Android Virtual Device Manager (AVD) try unchecking the virtual devices Emulated Performance settings: use host GPU.

like image 57
Natalia Maciejowska Avatar answered Sep 27 '22 19:09

Natalia Maciejowska


An alternative is to use adb screenrecord

https://developer.android.com/studio/command-line/shell.html#screenrecord

$ adb shell screenrecord /sdcard/demo.mp4
(press Ctrl-C to stop)
$ adb pull /sdcard/demo.mp4
$ adb shell rm /sdcard/demo.mp4
like image 28
keith Avatar answered Sep 27 '22 20:09

keith