java - How to check if an URL exists? -


how can check if url exists and, if yes, something? i'm making app updates private server (http). want following:

1) check if url exists.

2) if response positive, display dialog let download update.

3) if response negative, display dialog tells current version installed latest.

i wrote little code download update server doesn't check if url exists. in fact, tries "download" update when new apk isn't on server (so downloads nothing). can me this? in advance.

hello it's easy: exception if url not exist


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -