OSDN Git Service

Update Javadoc for EXTRA_NETWORK.
authorJeremy Joslin <jjoslin@google.com>
Thu, 12 Feb 2015 00:51:13 +0000 (16:51 -0800)
committerJeremy Joslin <jjoslin@google.com>
Thu, 12 Feb 2015 02:28:57 +0000 (18:28 -0800)
Bug: 19352840
Change-Id: Ib668bee0fb2c6f5bcd01a7908ebd20b9ec8a40ef

core/java/android/net/ConnectivityManager.java

index cdc8661..eb2df0b 100644 (file)
@@ -2369,6 +2369,10 @@ public class ConnectivityManager {
      * The lookup key for a {@link Network} object included with the intent after
      * successfully finding a network for the applications request.  Retrieve it with
      * {@link android.content.Intent#getParcelableExtra(String)}.
+     * <p>
+     * Note that if you intend to invoke (@link #setProcessDefaultNetwork(Network)) or
+     * {@link Network#openConnection(java.net.URL)} then you must get a
+     * ConnectivityManager instance before doing so.
      */
     public static final String EXTRA_NETWORK = "android.net.extra.NETWORK";