App always starts fresh from root activity instead of resuming background state (Known Bug)

@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if ((getIntent().getFlags() & Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT) != 0) { // Activity was brought to front and not created, // Thus finishing this will get us to the last viewed activity finish(); return; } // Regular activity creation code… }

How to make notification intent resume rather than making a new intent?

The idea is that people can navigate away from this activity and quickly access it again from any screen they want by pulling down the drop down menu and selecting it. Please make this optional. However, when the notification is pressed it starts a new instance of the activity. That will happen by default. What … Read more