scrollscreenshot


Source link: https://github.com/PGSSoft/scrollscreenshot

scrollscreenshot

Make Android screenshots of scrollable screen content - brought to you by PGS Software SA

This tool makes a number of screenshots, scrolling screen content automatically between each shot. By default status bar and navigation bar are included only once.

Documentation:

Usage: com.pgssoft.scrollscreenshot.ScrollScreenShot [options]
Options:
  -c, --count

  Number of screenshot to take

  Default: 5
  -v, --device

  Device ID, first device is used if not specified (i.e. "4df1902336814fa6"

  or "192.168.56.102:5555")
  -d, --direction

  Swipe direction: topdown (default), leftright (implies "--stitch none")

  Default: topdown
  -h, --help

  Display this help

  Default: false
  -e, --inertia

  Inertia of content, how many pixels are required to start dragging. Use

  non-zero value if there are duplicated stripes.

  Default: 0
* -i, --inputdevice

  Digitizer input device number, N in /dev/input/eventN

  Default: 1
  -n, --nameprefix

  Output filename prefix

  Default: out
  -p, --pathsdk

  Path to Android SDK
  -s, --stitch

  Stitch mode: full (smooth stitch), none (merged full screenshots),

  separate (separate files)

  Default: full  

How to use

You need to know digitizer device input number, which is specific to every device and ROM.

Use command

adb shell getevent -l

and move finger on screen. You will see something like

/dev/input/event2: EV_SYN

 SYN_REPORT

  00000000 /dev/input/event2: EV_ABS

 ABS_MT_WIDTH_MAJOR
00000014 /dev/input/event2: EV_ABS

 ABS_MT_POSITION_X
 00000247 /dev/input/event2: EV_ABS

 ABS_MT_POSITION_Y
 0000030c /dev/input/event2: EV_ABS

 ABS_MT_TOUCH_MAJOR
0000001a /dev/input/event2: EV_ABS

 ABS_MT_TOUCH_MINOR
0000000e /dev/input/event2: EV_ABS

 003c

  ffffffb3 

In your case device you are looking for has number 2.

You can now start screen capturing. Download latest scrollscreenshot binary, unlock screen, start app you want to scroll-capture and type (replace 2 by your device input number):

java -cp scrollscreenshot-latest.jar com.pgssoft.scrollscreenshot.ScrollScreenShot -i 2 

If eveything goes well, you will get file out.png with something like:

Left-to-right mode will give you something like this:

Todo:

  • scrolling in all 4 directions
  • automatic detection of scroll area edge

Changelog

  • 0.1 - initial release, only top-down scrolling for first device found by ADB
  • 0.2 - scrolling top-down and left-right, stitch now works in smooth/none/separate modes, ADB device can be choosen by id
  • 0.3 - fixed NPE when using separate stitch mode

Acknowledgments

License

scrollscreenshot for Android

Copyright (c) 2014 PGS Software SA

https://github.com/PGSSoft/scrollscreenshot

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Resources

AndroidAvatarView allows to use ImageView for avatar.

A simple & clean api for adding PushBullet style skittles to your app for more material design glory.

STF

STF (or Smartphone Test Farm) is a web application for debugging smartphones, smartwatches and other gadgets remotely, from the comfort of your browser.

A powerful ListView with awesome pull-refresh and pull-on-load-more function!

The idea of this android library is to give the possibility to display two texts inside the imageitself. These texts could be the title or the description of the image or something else. Also there should be various settings to customise these texts and everything else.

Paper is a fast NoSQL data storage for Android that lets you save/restore Java objects by using efficient Kryo serialization and handling data structure changes automatically.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes