Reputation: 2571
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.
Upvotes: 257
Views: 238983
Reputation: 572
For folks looking to trigger screenshots to test things like the new screenshot detector API, which AFAICT won't be triggered via the emulator screenshot button, you can use the accessibility menu's screenshot button. Turn on the accessibility menu by searching for it in settings and then swipe to the second page and you'll see a screenshot button which will trigger the screenshot capture API.
Upvotes: 1
Reputation: 315
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.
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.
Upvotes: 1
Reputation: 3
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
Upvotes: 0
Reputation: 11329
Starting with Android Studio 2.0 you can do it with the new emulator:
Just click 3 "Take Screenshot". Standard location is the desktop.
Or
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:
Upvotes: 379
Reputation: 76
Emulator settings > Settings > General > Screenshot save location > 'your file path'
then select your desire location to save your screenshot.
ctrl + s
to save your screenshot.
hope its work.
Upvotes: 2
Reputation: 561
Long Press on Power button, then you will have the option for the screenshot.
Upvotes: 16
Reputation: 2280
For more info Check this link
Upvotes: 5
Reputation: 1142
Please use ctrl
+s
on Windows or ⌘s
on Mac (while the emulator is focused). Your Desktop
should be the default save location.
Upvotes: 35
Reputation: 1109
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
Upvotes: 0
Reputation: 561
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.
Upvotes: 37
Reputation: 4636
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.
Upvotes: 1
Reputation: 1975
You can capture a screenshot from Android Studio as shown in the image below.
Upvotes: 74
Reputation: 404
1.First run your Application
2.Go to Tool-->Android-->Android Device Monitor
Upvotes: 3
Reputation: 3172
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
Upvotes: 33
Reputation: 1032
To take a screenshot of your app:
Upvotes: 72
Reputation: 80040
Click on the Monitor (DDMS Included) button on the toolbar -- it looks like the Android bugdroid:
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:
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
Upvotes: 94