Code example for ParseException

Methods: toString

0
			 
			String result = null;
			try { 
				result = EntityUtils.toString(resEntity);
			} catch (ParseException e) {
				Log.e(TAG,"Parse Error while parsing response!" + e.toString());
				return false; 
			} catch (IOException e) {
				Log.e(TAG,"IO Error while parsing response!" + e.toString());
				return false; 
			} 
			Log.i(TAG,"result = " + result);
 
			try { 
				if(disassembleResponse(result) != 0){
					Log.e(TAG, "Error while parsing result");
				} 
				 
			} catch (Exception e) {
				Log.e(TAG,"JSON Error while parsing result!" + e.toString());
				return false;