Take a Screenshot with Inline Java Code
I have tested this on an Android 7.0 device only - take a screenshot of your activity. You need to enable the JavaObject library to make use of it.
@JordiCP solved my initial problem here...
@JordiCP solved my initial problem here...