App In background?

is this possible to locate app wether the app is in recent or home button pressed ?