Screenshot captures black image

2,399 views
Skip to first unread message

edsh...@gmail.com

unread,
Nov 18, 2016, 5:57:38 PM11/18/16
to Automate
I have Moto G+ running Android 6.0.1, non-rooted. The screenshot block is capturing an image, but the image is totally black (screen not asleep).

Any ideas?

edsh...@gmail.com

unread,
Nov 19, 2016, 9:05:38 AM11/19/16
to Automate, edsh...@gmail.com
Correction: I have a Moto G4+

Some background: In the "Developer Options", I have "Stay Awake" selected and phone plugged in. I have a time-lapse flow set up that has 2 blocks: A delay of 60 seconds and a Screen capture block. I have it looping infinitely.

It appears that sometimes the screen capture works properly, and other times it won't. For instance, out of 246 screen captures, only 43 were good. 203 were black. The distribution appears to be random.

Henrik "The Developer" Lindqvist

unread,
Nov 19, 2016, 9:17:57 AM11/19/16
to Automate, edsh...@gmail.com
Is the screen always on?

edsh...@gmail.com

unread,
Nov 19, 2016, 9:26:09 AM11/19/16
to Automate, edsh...@gmail.com
Yes. Screen always on, but dims.

Henrik "The Developer" Lindqvist

unread,
Nov 20, 2016, 10:36:35 AM11/20/16
to Automate, edsh...@gmail.com
Android doesn't really support taking screenshots, without using root, so Automate has to use Screen cast to work around it.
Screen cast doesn't do an exact copy of the screen, it re-renders the screen content to a separate bitmap while hiding sensitive content etc..
It may not even work for non Android UI, such as games directly rendered through OpenGL.

Any idea of what may have been on screen for the empty screenshots?

edward...@livetext.com

unread,
Nov 20, 2016, 11:35:45 AM11/20/16
to Automate, edsh...@gmail.com
The Uber driver app. Trying to make a time lapse of the surge in my area to identify best times to drive. I came up with the idea and passed it over to Harry at the rideshareguy.com and they implemented the idea, created a blog post and youtube video.  Nicely done: http://therideshareguy.com/how-to-create-an-uber-surge-map-using-time-lapse-video

Guess I'll see if I can root my phone next. Would Automate screencapture be able to take advantage of a rooted phone? Or, would I need to use another tool to take a time-lapse?

Henrik "The Developer" Lindqvist

unread,
Nov 20, 2016, 11:43:00 AM11/20/16
to Automate, edsh...@gmail.com, edward...@livetext.com
Automate will not use the root method on Android 6+, however you can easily use the Shell command superuser block to execute:
screencap screenshot.png

jakec...@gmail.com

unread,
Feb 28, 2017, 7:42:18 PM2/28/17
to Automate
I am trying to do the same time lapse Uber surge map for the Madison area but am experiencing the same black screenshots randomly interspersed with usable images. Has anyone found a working solution for Android Moto G4?

Thanks!

Reply all
Reply to author
Forward
0 new messages