0

How to get the contents of response when the webservice returns a parsing error. Sax listner has these methods

public void parsingSuccess(List list),

public void parsingError(String error) &

public void connectionError(String error)

In case of error we just get the error message.Only when parsing is successful we get a list. How to get the entire content when there is a parsing error?

D-D
  • 954
  • 2
  • 12
  • 27

1 Answers1

0
        Handler handler = new Handler(new Callback() {

                        public boolean handleMessage(Message msg) {
                            this.list.setAdapter(); // set data to your list
                            return false;                           
                            }
                    });

public void connectionError(String error){
handler.sendEmptyMessage(0);// connection failder;
}
Yahor10
  • 2,123
  • 1
  • 13
  • 13