Reputation: 807
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
Reputation: 6161
You can do it in two ways -
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...
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