android-screencapture | A Groovy script to take screenshots of an Android device
kandi X-RAY | android-screencapture Summary
kandi X-RAY | android-screencapture Summary
A Groovy script to take screenshots of an Android device. This is a Groovy script (without the .groovy extension), set up to run from the Linux / OS X shell. It uses the ddmlib Android library version r13 via Grape. The script is very no-frills - it captures the first hardware device that it finds, at the resolution of the device, and writes out a .png file. Based on code found at
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of android-screencapture
android-screencapture Key Features
android-screencapture Examples and Code Snippets
Community Discussions
Trending Discussions on android-screencapture
QUESTION
I am using google's sample project on Media Projection API. what I observe is that every time screen orientation changes the VirtualDisplay
object returned as
ANSWER
Answered 2018-Jan-23 at 15:48So the problem was with android's default behavior when configuration changes. It basically destroys the activity and all of its fields (in this case including VirtualDisplay instance). Also, retaining the VirtualDisplay instance as a UI state here is not an option. so I ended up handling the orientation change myself as described here by adding configChanges
tag to my activity
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install android-screencapture
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page