pgs·3 years ago·discussAttempting 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...
https://developer.android.com/reference/android/os/NetworkOn...