Network calls take time and may cause a delay
Also, please try to avoid disk I/O on a UI thread as well :)
@drabiter Async ??? any network calls may cause a delay...earlier versions of android allowed this, but newer versions will throw a "network on main thread" exception
@dpashkevich Yes I/O calls too may take time hampering user experience!!!
@nischee I mean, Async class as the solution :)
@drabiter yes Async class is a solution!!! :)
In Android 4 it is not possible to execute network calls in UI thread because system throws NetworkOnMainThreadExteption. :)