title: How to check if a user is currently running and using an app on android?
body: <p>Is it possible to use android to detect if a certain app on an android phone is open on the screen. For example, checking to see if the user is currently using his/her photo's app. Most of the questions I've read so far are checking the whether a certain BACKGROUND app is running; I'm trying to figure out whether I can check if a certain app is currently open and running on the screen. So using my app (which would be running in the background) to detect whether an app, for example the photos app, is open and being used by the user.</p>