Package android.net

Class NetworkInfo

    • Constructor Detail

      • NetworkInfo

        public NetworkInfo()
    • Method Detail

      • isConnected

        public boolean isConnected()
        Indicates whether network connectivity exists and it is possible to establish connections and pass data.

        Always call this before attempting to perform data transactions.

        Returns:
        true if network connectivity exists, false otherwise.