title: In android How to make the service runnable thread to wait for the activity to get finished
body: <p>From service which is running indefinitely at the background, there i have created a runnable thread for network operation and trying to start the activity from the service, The activity starts and function smoothly but of course the service keep on running.. (after the activity comes to focus.). I want to make my service to resume back its following code after the activity finishes its work or calls ondestroy(). How this can be achieved. ?</p>