try{HttpGethttpGet=newHttpGet(url);HttpResponsehttpResponse=newDefaultHttpClient().execute(httpGet);if(httpResponse.getStatusLine().getStatusCode()==200){returntrue;}else{returnfalse;}}catch(Exceptione){returnfalse;}