Determine if Activity is in foreground

surfuric

Member
Licensed User
Longtime User
I have a service running every hour. It works fine. But I would like the service to be able to check to see if one of my activities (Main or others) is in the foreground. That way I can skip the service's routines till the next hour. I know I could probably do this with setting a flag in the Activity_resume and _pause, but is there a simple command instead?
 

barx

Well-Known Member
Licensed User
Longtime User
As far as I'm aware you cannot check if foreground. But you can check 'IsPaused'. Type that into the forum search bar and the info will be at the top of results page.
 
Upvote 0
Top