java - how to determine if a web service is up and running -


i trying call following web service android app, hung completed without returning result:

web service:http://androidexample.com/media/webservice/jsonreturn.php

however when clicked on link, worked fine - json file displayed. yet not work in app..

but now, works fine in android app, perhaps temporarily down guessing. how can know if web service , running android app consume ?

typically, web services designed have status page can return status text or http return code indicate service status.

if doesn't have that, can design function periodically basic request known result determine state. better doing simple ping.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -