The situation is this: ActivA (MainActivity) starts the service, after which I press the HOME button. Activation is in the onStop state, the service is running. When the service quits, it creates a notification, a standard NewMessageNotification created from the AndroidStudio template. Attachment to this notice:
notificationCompatBuilder.setContentIntent( PendingIntent.getActivity(context, 0, new Intent(context, MainActivity.class), PendingIntent.FLAG_UPDATE_CURRENT)) When you click on the notification, a new Activation opens (the onCreate event fires), naturally empty, without the results of the service. Then press the Back button, the Activation closes, and under it, a surprise! The old activit, worked onPostResume and loaded the data with the results of the service.
Question: How can I prescribe an intent in such a way that a new Activity is not created, but an old one wakes up?