NetworkOnMainThreadException

Class of android.os · NetworkOnMainThreadException.java · Android's reference

public class NetworkOnMainThreadException extends android.util.AndroidRuntimeException

NetworkOnMainThreadException ← AndroidRuntimeException

Network use on the main thread, which StrictMode forbids.

Constructors

public NetworkOnMainThreadException() empty body source
public NetworkOnMainThreadException(String message) source
public NetworkOnMainThreadException(String message, Throwable cause) source
public NetworkOnMainThreadException(Exception cause) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.