Files
android_development/samples/browseable/BasicNetworking/_index.jd
Trevor Johns 48b7225a27 Sync sample prebuilts
Synced to lmp-mr1-ub-docs commit 9b3abfde74ffa708734d2b8a09e1de0a0c82451c.

Change-Id: Ibae1c4729c9b8b4c0de2faebb998459a8da524e1
2015-05-20 22:04:28 -07:00

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>