Search code examples
androidbackgroundscreenshot

Can a backgrounded Android app take screenshots of the currently active screen?


I'm new to Android development, and I was wondering if there is a way to have an app take a screenshot of the currently active screen, do some processing on the screenshot (which would be internal to the app and temporary; I don't want it in the photo gallery), then communicate with a remote server over the Internet?

I am of course looking for more than a yes or no answer. An example of an api call or library I could use to do this would be a perfect answer.

The purpose would be to have a program screen scrape another program to recognize some text and use it for updating an online service.


Solution

  • No this is not possible, at least not on non-rooted devices. This is of course for security reason.