xref: /aosp_15_r20/development/samples/browseable/BasicNetworking/_index.jd (revision 90c8c64db3049935a07c6143d7fd006e26f8ecca)
1
2page.tags="BasicNetworking"
3sample.group=Connectivity
4@jd:body
5
6<p>
7
8            This sample demonstrates how to use the ConnectivityManager to determine if you have
9            a network connection, and if so, what type of connection it is.
10            \n\nA "NetworkInfo" object is retrieved from the ConnectivityManager, which contains information
11            on the active connection, and then the connection type is printed to an on-screen console.
12
13        </p>
14