I started a Network Service from a "Splash Screen Activity". So, the context used inside this Service is the "Splash Screen Activity" context. OK.
I dismiss the "Splash Screen Activity" and start the "Main Activity".
The Network Service handles the Network traffic perfectly.
Now, the Network Service needs to update the "Main Activity" with the received data.
The problem is that it needs a reference to the current activity ("Main Acitivity"). How can I retrieve the current Activity form the late "Splash Screen Activity"?
I thought in passing the "Main Activity" context through a Service's method and store it inside a variable, but as the Service is an abstract fully static class, I'm afraid to create a memory leak.
Any idea, how I can resolve this? Thanks