shoriwa-shaun-benjamin
shoriwa-shaun-benjamin

Reputation: 807

Simulate taking a screenshot in Android emulator

I'd like to know how I can simulate a device taking a screenshot in an android emulator. I know how to take a screenshot of a device but I want to simulate someone taking a screenshot with their actual device.

Any assistance would be appreciated.

Upvotes: 1

Views: 1024

Answers (1)

TDG
TDG

Reputation: 6161

You can do it in two ways -

  1. From Eclipse: Windows --> Show view --> other --> Devices. Once the Devices window is open, you will see a camera icon on the top right side. Click it...

  2. From command line - Type adb shell and once you're "inside" type screencap name.png (you'll have to do it in a folder with write permission). After that you can exit the shell and type - adb pull /picture_path/name.png

Upvotes: 4

Related Questions