Files
android_development/samples/browseable/BasicNetworking/_index.jd
Trevor Johns abededd8f7 Docs: Sync browseable samples for lmp-docs
Synced to developers/samples/android commit
bc036ecdf44cd03163c206096172299f3940b057.

Change-Id: Ib68230d79ca300e7db906aff2ebfc2cb6c6968f7
2014-12-09 18:49:04 -08:00

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