编写:kesenhoo - 原文:http://developer.android.com/training/training/building-connectivity.html
These classes teach you how to connect your app to the world beyond the user's device. You'll learn how to connect to other devices in the area, connect to the Internet, backup and sync your app's data, and more.
How to find and connect to local devices using Network Service Discovery and how to create peer-to-peer connections with Wi-Fi.
How to create a network connection, monitor the connection for changes in connectivity, and perform transactions with XML data.
How to minimize your app's impact on the battery when performing downloads and other network transactions.
How to transfer data between the cloud and the device using the Android sync adapter framework