I want to create notification that when it clicked will bring my app to front but without changing (reload or navigate out) the last activity that was shown.
I tried:
setContentIntent(PendingIntent.getActivity(context, 0, new Intent(context, MainActivity.class), Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT))
But in the new Android 4.3 the application brought to front, but its also start a new instance of MainActivity
, and I don't want this.
I want that my app will continue from the last activity that was shown.
How to do that?