Show push notifications when application open/closed in different way
问题 In my app I've a several Activities that inherit from one BaseActivity. My application receive push notification with GCMBaseIntentService I need to implement the next logic: When push received if the application is open show dialog, if closed show notification. My code: public class GCMIntentService extends GCMBaseIntentService { ----------------------- other code ---------------------------------------- @Override protected void onMessage(Context context, Intent intent) { Log.d(TAG,