Is it possible to programmatically take a screenshot of a mobile screen that is currently displaying? I want my app to take a screenshot of another screen after some time from a background service. what I have done already is I am getting the screenshot from the service but it is taking the screenshot of my app activity in which code is written but I want to take a screenshot every 5 mint no matter what screen is on appearing on the mobile from the background screen.
it is possible then help me out, please?