How can I tell if android app is running in the foreground?
<p>I am doing a status bar notification in my android app that is triggered by c2dm.  I want to not display the notification if the app is running.  How do you determine if the app is running and is in the foreground?</p>
