Taking screenshot on Emulator from Android Studio
Asked Answered
P

15

254

I know this probably might be the silliest question but still, I don't know how to take a screenshot of Emulator via Android Studio. I recently switched from Eclipse to Android Studio and I could not find it anywhere, I tried to search on web too but no help.

Painter answered 7/1, 2014 at 22:32 Comment(0)
M
376

Starting with Android Studio 2.0 you can do it with the new emulator:

New Android Emulator from Android Studio 2.0

Just click 3 "Take Screenshot". Standard location is the desktop.

Or

  1. Select "More"
  2. Under "Settings", specify the location for your screenshot
  3. Take your screenshot

UPDATE 22/07/2020

If you use the emulator inside Android Studio which is possible since Android Studio 4.1 click here to save the screenshot in your standard location:

enter image description here

Magnetoelectricity answered 17/2, 2016 at 10:30 Comment(6)
@Nino Handler I do just this, but no image appears on my desktop (and if I change the location, still no luck), so as a result I can't take screenshots using the emulator. Could you give some tips to get it sorted out?Trude
@Trude I would recommend to use Fidel Eduardo López's or HenBoy331's answer which should also work.Magnetoelectricity
It makes screenshots with wrong colors: #52463462Underling
For me it started working when I changed the default Desktop location to my Pictures library. Before all looked fine, but it didn't save the screenshotBionics
Where is the photo saved, in the standalone emulator?Roxi
After the camera icon is clicked the screenshot will appear and you'll see at its bottom a button to save it. Once you click save your file explorer will appear allowing you to choose the location.Spikelet
A
94

Click on the Monitor (DDMS Included) button on the toolbar -- it looks like the Android bugdroid:

IDE window showing Monitor button

That will bring up the DDMS window. Select the emulator instance from the Devices tab on the left, and click on the camera button in the toolbar above it, next to the stop sign icon:

Monitor window

Note that if your emulator is running Android 4.4 or I think 4.3, then screen capture functionality is broken -- you'll have to use a physical device to get screenshots on those OS versions. It works okay for Android prior to 4.3. That bug is https://code.google.com/p/android/issues/detail?id=62284

Agram answered 8/1, 2014 at 0:4 Comment(2)
You can also launch DDMS from Terminal. Just enter 'ddms' to launch itMeli
Thanks for the info on the bug, that is what was keeping me from getting a screenshot.Undistinguished
S
74

You can capture a screenshot from Android Studio as shown in the image below. You can take capture from Android Studio

Starnes answered 7/1, 2016 at 9:36 Comment(1)
Just a note, this icon is available when the, "Android Monitor", tab is selected.Motivity
I
71

To take a screenshot of your app:

  1. Start your app as described in Run your App in Debug Mode.
  2. Click Android 6:Android button to open the Android DDMS tool window.
  3. Click Screen Capture Camera button on the left side of the Android DDMS tool window.
  4. Optional: To add a device frame around your screenshot, enable the Frame screenshot option.
  5. Click Save.
Inherit answered 15/9, 2014 at 19:57 Comment(2)
This doesn't work for me. I just get a dialog with a progressbar that says 'Obtaining screenshot from device...' but it never completes.Affiance
would give extra bonus for screen capure with device frame :)Grearson
B
36

Keeping the emulator on top of all other task on the desktop and pressing "Ctrl + S", also captures the screen shot and it is saved on default(if, not edited) path(i.e. C:\Users\username\Desktop).

Or

you can just click on the "Camera" icon highlighted in "green", which we have with the emulator.

enter image description here

Bounds answered 24/1, 2018 at 15:3 Comment(1)
Look in [...] -> Settings to find out where the "Screenshot save location" is for this device.Along
T
34

Please use ctrl+s on Windows or ⌘s on Mac (while the emulator is focused). Your Desktop should be the default save location.

Talkative answered 22/2, 2017 at 17:25 Comment(0)
M
32

Besides using Android Studio, you can also take a screenshot with adb which is faster.

adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png
adb shell rm /sdcard/screen.png

Shorter one line alternative in Unix/OSX

adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png

Original blog post: Grab Android screenshot to computer via ADB

Meantime answered 17/4, 2015 at 14:2 Comment(0)
K
15

Long Press on Power button, then you will have the option for the screenshot. Power Button Emulator

Option for screenshot in emulator

Keener answered 18/3, 2020 at 9:34 Comment(1)
doesn't work on Android 7, 11Baptistry
B
5
  1. In Android Studio, select View > Tool Windows > Logcat to open Logcat.
  2. Select the device and a process from the drop-down at the top of the window.
  3. Click Screen Capture on the left side of the window.

For more info Check this link

Bacchae answered 27/2, 2019 at 9:56 Comment(0)
L
3

1.First run your Application 2.Go to Tool-->Android-->Android Device Monitor Check image for more detail

Lipfert answered 9/10, 2015 at 9:31 Comment(0)
I
2
  1. Go to

Emulator settings > Settings > General > Screenshot save location > 'your file path'

then select your desire location to save your screenshot.

  1. After setup your emulator settings then press:

ctrl + s

to save your screenshot.

hope its work.

Isla answered 8/5, 2021 at 9:1 Comment(0)
C
1

Click on Camera icon that is there on the right to emulator in action icons list. This is available on latest studio, though I am not sure from which version.

enter image description here

Catalyze answered 3/11, 2016 at 9:9 Comment(2)
Andrev already posted similar answer, so this is a duplicated answer.Chrome
Yeah, I think I some how missed seeing that answer.Catalyze
K
1

It is quite easy with Android Studio Electric Eel | 2022.1.1

Run your emulator and at the top you will have a set of Icons select the Camera Icon which will trigger a screenshot and a preview with various options to modify or edit your picture before saving it.

Initial First Image

This is the new Window you get after clicking the Camera Icon which has an option to change the location of where to save the screenshot.

Window for screenshot preview

Ketene answered 4/4, 2023 at 5:23 Comment(0)
L
0

Android Device Monitor was deprecated in Android Studio 3.1 and removed from Android Studio 3.2. To start the standalone Device Monitor application in Android Studio 3.1 and lower you can run android-sdk/tools/monitor.bat

Lowson answered 15/2, 2019 at 13:40 Comment(0)
H
0

On windows: I found that my firewall blocks write access to screenshot. A workaround is to take a snapshot and find it in: C:\Users\YOUR_USER_NAME.android\avd\YOUR_EMULATOR_NAME.avd\snapshots\snap_SNAPSHOT_TIME

Hearth answered 18/9, 2021 at 15:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.