I am connecting to a web service using
urlConnection.connect();
This works only in AsyncTask. I am not able to execute the above statement on plain activity (without AsyncTask )
Is it the behavior by design, or I am missing something.
By the way, this is my first question