How can I tell if Android app is running in the foreground?
Asked 2011-03-31T18:36:33.430
83
I am doing a status bar notification in my android app that is triggered by c2dm. I don't want to display the notification if the app is running. How do you determine if the app is running and is in the foreground?