I was developing an app to check if a website is responding or not. Also i wanted to know the response time of a particular url.
I used webviewclient for getting the response code.
But I want to implement it in service and webviewclient can’t be used in services. I want this to be done only in services and not in activity . Please help.
Any java codes using http to know the response code, response time of url would be helpfull. Thanks in advance:)
take a look at the project “httpmon” on google code,
it’s a little rough, but is a complete version of what you are looking for. it’s also on the play store,
DISCLOSURE: this is my app, but it’s free and open source.