Search code examples
iphoneobjective-ciosios6

Is there a way for an app[iphone] to determine programmatically if another specific app is running?


Can I code an app to check if another app is runnin?

For example This would be the code for app1

app1.m Check { if(app2.running) { do something... }


Solution

  • You could use the category defined in the link below to get a list of running processes, and look for the target process name.

    http://forrst.com/posts/UIDevice_Category_For_Processes-h1H