I would like to implement a function that can check if Activity is open, because when I receive the notification through GCM (Google Cloud Messaging) if the activity has opened it will only loads the information in it, if it has closed notify the user and through this notification it opens the Activity with the information. I want to do this within a service, vlw!