I have a Service that sends data to the server. While the data is being transmitted, the user can do some work in the application.

Upon completion of sending, the Service sends a message through PendingnItent to the activity from which it was launched. That, in turn, reports that the data is transmitted.

The problem is that until I return to this activity, I will not see the message. How to make it appear in the current activity?

And I see the second problem, activity can be destroyed by the system, where will the answer come then?

    0