Most UI applications are broken real-time applications 3 years ago
Attempting a network operation on the Android UI thread will throw the android.os.NetworkOnMainThreadException exception, and has done since API 11 (Honeycomb) in 2011.
https://developer.android.com/reference/android/os/NetworkOn...