Added in API level 1

android.net


Classes that help with network access, beyond the normal java.net.* APIs.

Interfaces

ConnectivityManager.OnNetworkActiveListener Callback for use with ConnectivityManager.addDefaultNetworkActiveListener to find out when the system default network has gone in to a high power state. 
DnsResolver.Callback<T> Base interface for answer callbacks 
TetheringManager.StartTetheringCallback Callback for use with TetheringManager.startTethering(TetheringRequest, Executor, StartTetheringCallback) to find out whether tethering succeeded. 
TetheringManager.StopTetheringCallback Callback for use with TetheringManager.stopTethering(TetheringRequest, Executor, StopTetheringCallback) to find out whether stop tethering succeeded. 
TetheringManager.TetheringEventCallback Callback for use with ERROR(/registerTetheringEventCallback) to find out tethering upstream status. 
TransportInfo A container for transport-specific capabilities which is returned by NetworkCapabilities.getTransportInfo()
UrlQuerySanitizer.ValueSanitizer A functor used to sanitize a single query value. 

Classes

CaptivePortal A class allowing apps handling the ConnectivityManager.ACTION_CAPTIVE_PORTAL_SIGN_IN activity to indicate to the system different outcomes of captive portal sign in. 
ConnectivityDiagnosticsManager Class that provides utilities for collecting network connectivity diagnostics information. 
ConnectivityDiagnosticsManager.ConnectivityDiagnosticsCallback Abstract base class for Connectivity Diagnostics callbacks. 
ConnectivityDiagnosticsManager.ConnectivityReport Class that includes connectivity information for a specific Network at a specific time. 
ConnectivityDiagnosticsManager.DataStallReport Class that includes information for a suspected data stall on a specific Network 
ConnectivityManager Class that answers queries about the state of network connectivity. 
ConnectivityManager.NetworkCallback Base class for NetworkRequest callbacks. 
Credentials A class for representing UNIX credentials passed via ancillary data on UNIX domain sockets. 
DhcpInfo A simple object for retrieving the results of a DHCP request. 
DnsResolver Dns resolver class for asynchronous dns querying Note that if a client sends a query with more than 1 record in the question section but the remote dns server does not support this, it may not respond at all, leading to a timeout. 
EthernetNetworkSpecifier A NetworkSpecifier used to identify ethernet interfaces. 
Ikev2VpnProfile The Ikev2VpnProfile is a configuration for the platform setup of IKEv2/IPsec VPNs. 
Ikev2VpnProfile.Builder A incremental builder for IKEv2 VPN profiles 
InetAddresses Utility methods for InetAddress implementations. 
IpConfiguration A class representing the IP configuration of a network. 
IpConfiguration.Builder Builder used to construct IpConfiguration objects. 
IpPrefix This class represents an IP prefix, i.e., a contig