http status code 401 - Android koush ion library catch 401 error -


I'm using Android to handle pure operation. I want to add a common handler to handle 401 unauthorized errors. I am How can I do this?

Thanks

  ion. (This) .load ("http://google.com") .asString () .withResponse () .setCallback (new futures callback & lt; response & lt; string & gt; & gt; () {@Override public Ending at zero (exception e, feedback  results) {if (result.getHeaders (). Code ()) {// ............}}});  

Good look!


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -