Skip to content

Instantly share code, notes, and snippets.

View avbk's full-sized avatar

Alex avbk

  • neusta mobile solutions
  • Bremen
View GitHub Profile
@avbk
avbk / adbscreen.md
Last active February 15, 2019 09:11
Take a scaled screenshot via adb

Dependencies

  • Android SDK in $PATH
  • ImageMagick (Ubuntu: sudo apt-get install imagemagick)

Usage

$ bash adbscreen.sh a_filename

Takes a screenshot (e.g. a_filename.png) from the connected android device (or emulator, depending on what adb selects) and puts it into the working directory. The script will repaint the left part of the notification bar so that any pending notifications will be hidden.

@avbk
avbk / robo.md
Last active October 14, 2017 00:16
Testing with Robolectric within Android Studio

Testing with Robolectric within Android Studio

Prerequisites

0. Setup a project

Setup a new Android project with Android Studio. If you already have done this you can skip this step.