1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "//www.w3.org/TR/html4/strict.dtd"> 2<HTML style="overflow:auto;"> 3<HEAD> 4<meta name="generator" content="JDiff v1.1.0"> 5<!-- Generated by the JDiff Javadoc doclet --> 6<!-- (http://www.jdiff.org) --> 7<meta name="description" content="JDiff is a Javadoc doclet which generates an HTML report of all the packages, classes, constructors, methods, and fields which have been removed, added or changed in any way, including their documentation, when two APIs are compared."> 8<meta name="keywords" content="diff, jdiff, javadiff, java diff, java difference, API difference, difference between two APIs, API diff, Javadoc, doclet"> 9<TITLE> 10android.net.ConnectivityManager 11</TITLE> 12<link href="../../../../assets/android-developer-docs.css" rel="stylesheet" type="text/css" /> 13<link href="../stylesheet-jdiff.css" rel="stylesheet" type="text/css" /> 14<noscript> 15<style type="text/css"> 16body{overflow:auto;} 17#body-content{position:relative; top:0;} 18#doc-content{overflow:visible;border-left:3px solid #666;} 19#side-nav{padding:0;} 20#side-nav .toggle-list ul {display:block;} 21#resize-packages-nav{border-bottom:3px solid #666;} 22</style> 23</noscript> 24<style type="text/css"> 25</style> 26</HEAD> 27<BODY> 28<!-- Start of nav bar --> 29<a name="top"></a> 30<div id="header" style="margin-bottom:0;padding-bottom:0;"> 31<div id="headerLeft"> 32<a href="../../../../index.html" tabindex="-1" target="_top"><img src="../../../../assets/images/bg_logo.png" alt="Android Developers" /></a> 33</div> 34 <div id="headerRight"> 35 <div id="headerLinks"> 36<!-- <img src="/assets/images/icon_world.jpg" alt="" /> --> 37<span class="text"> 38<!-- <a href="#">English</a> | --> 39<nobr><a href="//developer.android.com" target="_top">Android Developers</a> | <a href="//www.android.com" target="_top">Android.com</a></nobr> 40</span> 41</div> 42 <div class="and-diff-id" style="margin-top:6px;margin-right:8px;"> 43 <table class="diffspectable"> 44 <tr> 45 <td colspan="2" class="diffspechead">API Diff Specification</td> 46 </tr> 47 <tr> 48 <td class="diffspec" style="padding-top:.25em">To Level:</td> 49 <td class="diffvaluenew" style="padding-top:.25em">21</td> 50 </tr> 51 <tr> 52 <td class="diffspec">From Level:</td> 53 <td class="diffvalueold">20</td> 54 </tr> 55 <tr> 56 <td class="diffspec">Generated</td> 57 <td class="diffvalue">2014.10.15 15:01</td> 58 </tr> 59 </table> 60 </div><!-- End and-diff-id --> 61 <div class="and-diff-id" style="margin-right:8px;"> 62 <table class="diffspectable"> 63 <tr> 64 <td class="diffspec" colspan="2"><a href="jdiff_statistics.html">Statistics</a> 65 </tr> 66 </table> 67 </div> <!-- End and-diff-id --> 68 </div> <!-- End headerRight --> 69 </div> <!-- End header --> 70<div id="body-content" xstyle="padding:12px;padding-right:18px;"> 71<div id="doc-content" style="position:relative;"> 72<div id="mainBodyFluid"> 73<H2> 74Class android.net.<A HREF="../../../../reference/android/net/ConnectivityManager.html" target="_top"><font size="+2"><code>ConnectivityManager</code></font></A> 75</H2> 76<a NAME="constructors"></a> 77<a NAME="methods"></a> 78<p> 79<a NAME="Added"></a> 80<TABLE summary="Added Methods" WIDTH="100%"> 81<TR> 82 <TH VALIGN="TOP" COLSPAN=2>Added Methods</FONT></TD> 83</TH> 84<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 85 <TD VALIGN="TOP" WIDTH="25%"> 86 <A NAME="android.net.ConnectivityManager.addDefaultNetworkActiveListener_added(android.net.ConnectivityManager.OnNetworkActiveListener)"></A> 87 <nobr><code>void</code> <A HREF="../../../../reference/android/net/ConnectivityManager.html#addDefaultNetworkActiveListener(android.net.ConnectivityManager.OnNetworkActiveListener)" target="_top"><code>addDefaultNetworkActiveListener</code></A>(<code>OnNetworkActiveListener</code>)</nobr> 88 </TD> 89 <TD> </TD> 90</TR> 91<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 92 <TD VALIGN="TOP" WIDTH="25%"> 93 <A NAME="android.net.ConnectivityManager.getAllNetworks_added()"></A> 94 <nobr><code>Network[]</code> <A HREF="../../../../reference/android/net/ConnectivityManager.html#getAllNetworks()" target="_top"><code>getAllNetworks</code></A>()</nobr> 95 </TD> 96 <TD> </TD> 97</TR> 98<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 99 <TD VALIGN="TOP" WIDTH="25%"> 100 <A NAME="android.net.ConnectivityManager.getLinkProperties_added(android.net.Network)"></A> 101 <nobr><code>LinkProperties</code> <A HREF="../../../../reference/android/net/ConnectivityManager.html#getLinkProperties(android.net.Network)" target="_top"><code>getLinkProperties</code></A>(<code>Network</code>)</nobr> 102 </TD> 103 <TD> </TD> 104</TR> 105<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 106 <TD VALIGN="TOP" WIDTH="25%"> 107 <A NAME="android.net.ConnectivityManager.getNetworkCapabilities_added(android.net.Network)"></A> 108 <nobr><code>NetworkCapabilities</code> <A HREF="../../../../reference/android/net/ConnectivityManager.html#getNetworkCapabilities(android.net.Network)" target="_top"><code>getNetworkCapabilities</code></A>(<code>Network</code>)</nobr> 109 </TD> 110 <TD> </TD> 111</TR> 112<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 113 <TD VALIGN="TOP" WIDTH="25%"> 114 <A NAME="android.net.ConnectivityManager.getNetworkInfo_added(android.net.Network)"></A> 115 <nobr><code>NetworkInfo</code> <A HREF="../../../../reference/android/net/ConnectivityManager.html#getNetworkInfo(android.net.Network)" target="_top"><code>getNetworkInfo</code></A>(<code>Network</code>)</nobr> 116 </TD> 117 <TD> </TD> 118</TR> 119<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 120 <TD VALIGN="TOP" WIDTH="25%"> 121 <A NAME="android.net.ConnectivityManager.getProcessDefaultNetwork_added()"></A> 122 <nobr><code>Network</code> <A HREF="../../../../reference/android/net/ConnectivityManager.html#getProcessDefaultNetwork()" target="_top"><code>getProcessDefaultNetwork</code></A>()</nobr> 123 </TD> 124 <TD> </TD> 125</TR> 126<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 127 <TD VALIGN="TOP" WIDTH="25%"> 128 <A NAME="android.net.ConnectivityManager.isDefaultNetworkActive_added()"></A> 129 <nobr><code>boolean</code> <A HREF="../../../../reference/android/net/ConnectivityManager.html#isDefaultNetworkActive()" target="_top"><code>isDefaultNetworkActive</code></A>()</nobr> 130 </TD> 131 <TD> </TD> 132</TR> 133<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 134 <TD VALIGN="TOP" WIDTH="25%"> 135 <A NAME="android.net.ConnectivityManager.registerNetworkCallback_added(android.net.NetworkRequest, android.net.ConnectivityManager.NetworkCallback)"></A> 136 <nobr><code>void</code> <A HREF="../../../../reference/android/net/ConnectivityManager.html#registerNetworkCallback(android.net.NetworkRequest, android.net.ConnectivityManager.NetworkCallback)" target="_top"><code>registerNetworkCallback</code></A>(<code>NetworkRequest,</nobr> NetworkCallback<nobr><nobr></code>)</nobr> 137 </TD> 138 <TD> </TD> 139</TR> 140<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 141 <TD VALIGN="TOP" WIDTH="25%"> 142 <A NAME="android.net.ConnectivityManager.removeDefaultNetworkActiveListener_added(android.net.ConnectivityManager.OnNetworkActiveListener)"></A> 143 <nobr><code>void</code> <A HREF="../../../../reference/android/net/ConnectivityManager.html#removeDefaultNetworkActiveListener(android.net.ConnectivityManager.OnNetworkActiveListener)" target="_top"><code>removeDefaultNetworkActiveListener</code></A>(<code>OnNetworkActiveListener</code>)</nobr> 144 </TD> 145 <TD> </TD> 146</TR> 147<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 148 <TD VALIGN="TOP" WIDTH="25%"> 149 <A NAME="android.net.ConnectivityManager.reportBadNetwork_added(android.net.Network)"></A> 150 <nobr><code>void</code> <A HREF="../../../../reference/android/net/ConnectivityManager.html#reportBadNetwork(android.net.Network)" target="_top"><code>reportBadNetwork</code></A>(<code>Network</code>)</nobr> 151 </TD> 152 <TD> </TD> 153</TR> 154<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 155 <TD VALIGN="TOP" WIDTH="25%"> 156 <A NAME="android.net.ConnectivityManager.requestNetwork_added(android.net.NetworkRequest, android.net.ConnectivityManager.NetworkCallback)"></A> 157 <nobr><code>void</code> <A HREF="../../../../reference/android/net/ConnectivityManager.html#requestNetwork(android.net.NetworkRequest, android.net.ConnectivityManager.NetworkCallback)" target="_top"><code>requestNetwork</code></A>(<code>NetworkRequest,</nobr> NetworkCallback<nobr><nobr></code>)</nobr> 158 </TD> 159 <TD> </TD> 160</TR> 161<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 162 <TD VALIGN="TOP" WIDTH="25%"> 163 <A NAME="android.net.ConnectivityManager.setProcessDefaultNetwork_added(android.net.Network)"></A> 164 <nobr><code>boolean</code> <A HREF="../../../../reference/android/net/ConnectivityManager.html#setProcessDefaultNetwork(android.net.Network)" target="_top"><code>setProcessDefaultNetwork</code></A>(<code>Network</code>)</nobr> 165 </TD> 166 <TD> </TD> 167</TR> 168<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 169 <TD VALIGN="TOP" WIDTH="25%"> 170 <A NAME="android.net.ConnectivityManager.unregisterNetworkCallback_added(android.net.ConnectivityManager.NetworkCallback)"></A> 171 <nobr><code>void</code> <A HREF="../../../../reference/android/net/ConnectivityManager.html#unregisterNetworkCallback(android.net.ConnectivityManager.NetworkCallback)" target="_top"><code>unregisterNetworkCallback</code></A>(<code>NetworkCallback</code>)</nobr> 172 </TD> 173 <TD> </TD> 174</TR> 175</TABLE> 176 177<p> 178<a NAME="Changed"></a> 179<TABLE summary="Changed Methods" WIDTH="100%"> 180<TR> 181 <TH VALIGN="TOP" COLSPAN=3>Changed Methods</FONT></TD> 182</TH> 183<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 184 <TD VALIGN="TOP" WIDTH="25%"> 185 <A NAME="android.net.ConnectivityManager.getNetworkPreference_changed()"></A> 186 <nobr><code>int</code> <A HREF="../../../../reference/android/net/ConnectivityManager.html#getNetworkPreference()" target="_top"><code>getNetworkPreference</code></A>() </nobr> 187 </TD> 188 <TD VALIGN="TOP" WIDTH="30%"> 189<b>Now deprecated</b>.<br> 190 </TD> 191 <TD> </TD> 192</TR> 193<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 194 <TD VALIGN="TOP" WIDTH="25%"> 195 <A NAME="android.net.ConnectivityManager.requestRouteToHost_changed(int, int)"></A> 196 <nobr><code>boolean</code> <A HREF="../../../../reference/android/net/ConnectivityManager.html#requestRouteToHost(int, int)" target="_top"><code>requestRouteToHost</code></A>(<code>int,</nobr> int<nobr><nobr></code>) </nobr> 197 </TD> 198 <TD VALIGN="TOP" WIDTH="30%"> 199<b>Now deprecated</b>.<br> 200 </TD> 201 <TD> </TD> 202</TR> 203<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 204 <TD VALIGN="TOP" WIDTH="25%"> 205 <A NAME="android.net.ConnectivityManager.setNetworkPreference_changed(int)"></A> 206 <nobr><code>void</code> <A HREF="../../../../reference/android/net/ConnectivityManager.html#setNetworkPreference(int)" target="_top"><code>setNetworkPreference</code></A>(<code>int</code>) </nobr> 207 </TD> 208 <TD VALIGN="TOP" WIDTH="30%"> 209<b>Now deprecated</b>.<br> 210 </TD> 211 <TD> </TD> 212</TR> 213<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 214 <TD VALIGN="TOP" WIDTH="25%"> 215 <A NAME="android.net.ConnectivityManager.startUsingNetworkFeature_changed(int, java.lang.String)"></A> 216 <nobr><code>int</code> <A HREF="../../../../reference/android/net/ConnectivityManager.html#startUsingNetworkFeature(int, java.lang.String)" target="_top"><code>startUsingNetworkFeature</code></A>(<code>int,</nobr> String<nobr><nobr></code>) </nobr> 217 </TD> 218 <TD VALIGN="TOP" WIDTH="30%"> 219<b>Now deprecated</b>.<br> 220 </TD> 221 <TD> </TD> 222</TR> 223<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 224 <TD VALIGN="TOP" WIDTH="25%"> 225 <A NAME="android.net.ConnectivityManager.stopUsingNetworkFeature_changed(int, java.lang.String)"></A> 226 <nobr><code>int</code> <A HREF="../../../../reference/android/net/ConnectivityManager.html#stopUsingNetworkFeature(int, java.lang.String)" target="_top"><code>stopUsingNetworkFeature</code></A>(<code>int,</nobr> String<nobr><nobr></code>) </nobr> 227 </TD> 228 <TD VALIGN="TOP" WIDTH="30%"> 229<b>Now deprecated</b>.<br> 230 </TD> 231 <TD> </TD> 232</TR> 233</TABLE> 234 235<a NAME="fields"></a> 236<p> 237<a NAME="Added"></a> 238<TABLE summary="Added Fields" WIDTH="100%"> 239<TR> 240 <TH VALIGN="TOP" COLSPAN=2>Added Fields</FONT></TD> 241</TH> 242<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 243 <TD VALIGN="TOP" WIDTH="25%"> 244 <A NAME="android.net.ConnectivityManager.TYPE_VPN"></A> 245 <nobr><code>int</code> <A HREF="../../../../reference/android/net/ConnectivityManager.html#TYPE_VPN" target="_top"><code>TYPE_VPN</code></A></nobr> 246 </TD> 247 <TD> </TD> 248</TR> 249</TABLE> 250 251 </div> 252 <div id="footer"> 253 <div id="copyright"> 254 Except as noted, this content is licensed under 255 <a href="//creativecommons.org/licenses/by/2.5/"> Creative Commons Attribution 2.5</a>. 256 For details and restrictions, see the <a href="/license.html">Content License</a>. 257 </div> 258 <div id="footerlinks"> 259 <p> 260 <a href="//www.android.com/terms.html">Site Terms of Service</a> - 261 <a href="//www.android.com/privacy.html">Privacy Policy</a> - 262 <a href="//www.android.com/branding.html">Brand Guidelines</a> 263 </p> 264 </div> 265 </div> <!-- end footer --> 266 </div><!-- end doc-content --> 267 </div> <!-- end body-content --> 268<script src="//www.google-analytics.com/ga.js" type="text/javascript"> 269</script> 270<script type="text/javascript"> 271 try { 272 var pageTracker = _gat._getTracker("UA-5831155-1"); 273 pageTracker._setAllowAnchor(true); 274 pageTracker._initData(); 275 pageTracker._trackPageview(); 276 } catch(e) {} 277</script> 278</BODY> 279</HTML> 280