How to take a screenshot in Android Studio


Take a screenshot

On many Android devices, you can capture a screenshot with a key-combination: Simultaneously press-and-hold Power and Volume-down. You can also capture a screenshot with Android Studio as follows:
  1. Run your app on a connected device or emulator. If using a connected device, be sure you have enabled USB debugging.
  2. In Android Studio, select View > Tool Windows > Logcat to open Logcat.
  3. Select the device and a process from the drop-down at the top of the window.
  4. Click Screen Capture  on the left side of the window.
    The screenshot appears in a Screenshot Editor window.


Figure 1. Screenshot editor



   5.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. Select Drop ShadowScreen Glare, or both to add these effects to your image.

    6. Click Save, specify the location and filename, and then click OK.

https://developer.android.com

Comments :

Post a Comment