FileDocCategorySizeDatePackage
NetworkOnMainThreadException.javaAPI DocAndroid 5.1 API1230Thu Mar 12 22:22:10 GMT 2015android.os

NetworkOnMainThreadException

public class NetworkOnMainThreadException extends RuntimeException
The exception that is thrown when an application attempts to perform a networking operation on its main thread.

This is only thrown for applications targeting the Honeycomb SDK or higher. Applications targeting earlier SDK versions are allowed to do networking on their main event loop threads, but it's heavily discouraged. See the document Designing for Responsiveness.

Also see {@link StrictMode}.

Fields Summary
Constructors Summary
Methods Summary