Check Internet Connectivity
suggest changeIntroduction
isNetworkAvailable() checks whether the device has a network connection.
Syntax
isNetworkAvailable(): returns whether a network is available
Parameters
| Parameter | Detail |
|---|---|
| Context | An activity or other Context. |
Remarks
The method returns true when a network is connected, and false otherwise. A connected network does not by itself prove that a remote host answered.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents