I need android service which will run in background and listen for urls from server.
Then that application will take data from urls and save it to hard disk.
My question in first place is, is it possible for android service to listen for incoming text from server?
What you want to do is receiving push notifications, which can contain the URL’s you want:
https://stackoverflow.com/search?q=%5Bandroid%5D+push+notifications