hgoebl / DavidWebb

Lightweight Java HTTP-Client for calling JSON REST-Services (especially for Android)
https://hgoebl.github.io/DavidWebb/
MIT License
127 stars 41 forks source link

Crashes after update UI #21

Closed rcmstark closed 8 years ago

rcmstark commented 8 years ago

I liked your library because ti's too simple. But it runs on the main thread and you can not update the UI after get the response.

hgoebl commented 8 years ago

Not a bug. It runs on the thread where you start it. Try to use AsyncTask or IntentService or your own Thread management. Or you can use a higher-level library like Volley.

rcmstark commented 8 years ago

I used AsyncTask. You library is easier than Volley

hgoebl commented 8 years ago

Thanks for contributing. I'm going to add documentation so everybody can see how to avoid doing I/O on Main-Thread.