Synced to lmp-mr1-ub-docs commit 9b3abfde74ffa708734d2b8a09e1de0a0c82451c. Change-Id: Ibae1c4729c9b8b4c0de2faebb998459a8da524e1
14 lines
493 B
Plaintext
14 lines
493 B
Plaintext
|
|
page.tags="BasicNetworking"
|
|
sample.group=Connectivity
|
|
@jd:body
|
|
|
|
<p>
|
|
|
|
This sample demonstrates how to use the ConnectivityManager to determine if you have
|
|
a network connection, and if so, what type of connection it is.
|
|
\n\nA "NetworkInfo" object is retrieved from the ConnectivityManager, which contains information
|
|
on the active connection, and then the connection type is printed to an on-screen console.
|
|
|
|
</p>
|