Files
android_development/samples/browseable/BasicNetworking/_index.jd
Trevor Johns 527a4f30a6 Update browseable samples for lmp-docs
Synced to commit df5e5013422b81b4fd05c0ac9fd964b13624847a. Includes
new samples for Android Auto.

Change-Id: I3fec46e2a6b3f196682a92f1afd91eb682dc2dc1
2014-11-12 11:39:30 -08:00

13 lines
508 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>