Skip to content

Creating a screenshot

MOHIT GUPTA edited this page May 9, 2023 · 2 revisions

There are three ways in which we can easily take screenshots and get it on the computer

Table of Contents

Using Android Studio on an Emulator

If you are running Oppia on an emulator running on Android Studio, you can directly take a screenshot from the sidebar of the emulator.

Screen Shot 2019-11-08 at 3 58 05 PM

Also, you can create a video/gif file from emulator by following these steps:

  1. Click on three dots present at the bottom on emulator side bar.
  2. In the extended menu click on Record and Playback.
  3. Click on Start Recording. This will only record the emulator screen.
  4. Once finished, click on Stop Recording.
  5. You can save this file in WEBM or GIF format.

The default location for the screenshot, video and gif would be on Desktop.

Using Android Studio on a local device

If you are running Oppia on a local Android device, you can take a screenshot using the Logcat window of Android Studio.

  • Go to Tools > Windows > Logcat. You will see the Logcat window open up at the bottom.
  • On the left hand side there is a column of icons, hover on the expand icon at the bottom and you will see a camera icon: .
Screenshot 2021-11-09 at 7 54 36 PM
  • Click on that and Android studio will take a screenshot and open up a Screenshot Editor.
Screenshot 2021-11-09 at 7 50 53 PM
  • Optionally change the image:
  • Recapture: Take a new screenshot.
  • Rotate Left: Rotate the image 90 degrees counter-clockwise.
  • Rotate Right: Rotate the image 90 degrees clockwise.
  • Frame Screenshot: Choose a device to wrap your screenshot with real device artwork.
  • Click Save, specify the location and filename, and then click OK to save the screenshot.

For more details, see the Android documentation

Using an ADB command

If you would like to take a screenshot but cannot use Android Studio, you can instead capture a screenshot using an ADB command.

  • Run the following command: adb shell screencap -p /sdcard/screenshot.png
  • This creates a screenshot called screenshot.png and stores it on your Android device.
  • To pull it on to your computer, you can run adb pull /sdcard/screenshot.png. This will copy the image from the device to your local machine (on the path in which you ran the command).
  • You can now upload the image on to Github.
Clone this wiki locally