Code example for ParseException

Methods: printStackTrace

0
 
        Log.i("response data =", response.toString());
        try { 
            xmlResponse = EntityUtils.toString(response.getEntity());
        } catch (ParseException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } 
 
        if (xmlResponse == null)
            return null; 
 
        HashMap<String, String> ret = new HashMap<String, String>();
        ret.put("error", getXMLElementValue(xmlResponse, "error_msg"));
        ret.put("original", getXMLElementValue(xmlResponse, "original"));
        ret.put("imgur", getXMLElementValue(xmlResponse, "imgur_page"));
        ret.put("delete", getXMLElementValue(xmlResponse, "delete_page"));
        ret.put("small_square", getXMLElementValue(xmlResponse, "small_square"));
        ret.put("large_thumbnail",
                getXMLElementValue(xmlResponse, "large_thumbnail"));