Code example for UnknownHostException

Methods: toString

0
			result= EntityUtils.toString(getResponseEntity);}
			//Log.e("Results", result); 
		} 
		catch(UnknownHostException e)
		{ 
			Log.e("JSON_GET", "Cannot find Host: "+e.toString());
			return jArray;
		} 
		catch(Exception e){
			e.printStackTrace();
			Log.e("JSON_GET", "Error in HTTP Conn: "+ e.toString());
		} 
		 
		//Convert received  
		try{ 
			jArray = new JSONObject(result);	
		}catch(Exception e){
			Log.e("JSON_Parser", "Error Parsing JSON data: " +e.toString());
		} 
		return jArray;
	}