In my Android app, I sometimes need to wait the end of an AsyncTask which connect to Network, to have results, and carry on after, depending of the value of the results! That's what we call Synchronous Task without the A before synchronous. But how do I do that: I mean if I don't do it in an AsyncTask it return me an android.os.NetworkOnMainThreadException (whereas it is what I want to do), and an AsyncTask can't return results!!!
Everybody has an answer?
Thank you very much!