I want to create URL monitor that will monitor in background each x seconds if the URL is online.
ConnectivityManager
is not good for me because my app is used in controlled environment and although internet works some ports need to be closed.
So I need to monitor if foo.com/9000
is online all the time and when I request isOnline
I want to get the result immediately, so monitoring should be done in background.
How would I accomplish this and is there a library that does this?
In Actionscript I would call UrlMonitor
and pass it url