目录

How do I check whether an application is running in the foreground or background?

You can obtain the information in either of the following ways: