I opened some page, lets call it WaitingPage. There is done some communication in background - application is checking server status. After receving some specific data from server I need to do some background work and finally close WaitingPage and return to previous one. What should I do to close this page? Background work is done by android service. Service has no knowledge about status of interface.
What is the best approach?