How do you check if the application is already running?

How to check if the application is already running?

Please elaborate why you think you have to check this and when

Taifun

PkgUtils extension has IsRunningForeground method block for this.