I\'m developing an android application where I use the following snippet:
private Boolean myMethod(boolean isOnline) { try { if (isOnline) {
Your mistake is adding this block:
catch (Exception e) { this.e = e; return false; }
It will catch everything, leading to your XmlPullParserException not being called IMO.