I know you need root access if you want to capture a screenshot by using a background application. However is it possible to just grab the screen content of your current visible activity owned by your process? This does not seem like a security constraint since the user has already installed your app is currently using your app. If so how does this work?
Share
The only thing I can imagine to work (not tested) is to get the instance of your root layout node and manually call the draw(canvas) with your own canvas that was instantiated with an empty bitmap and then save this bitmap. Sounds like a lot of work but is the only thing I can think of at the moment.