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.content.Context 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.content.<A HREF="../../../../reference/android/content/Context.html" target="_top"><font size="+2"><code>Context</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.content.Context.getCodeCacheDir_added()"></A> 87 <nobr><code>File</code> <A HREF="../../../../reference/android/content/Context.html#getCodeCacheDir()" target="_top"><code>getCodeCacheDir</code></A>()</nobr> 88 </TD> 89 <TD> </TD> 90</TR> 91<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 92 <TD VALIGN="TOP" WIDTH="25%"> 93 <A NAME="android.content.Context.getDrawable_added(int)"></A> 94 <nobr><code>Drawable</code> <A HREF="../../../../reference/android/content/Context.html#getDrawable(int)" target="_top"><code>getDrawable</code></A>(<code>int</code>)</nobr> 95 </TD> 96 <TD> </TD> 97</TR> 98<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 99 <TD VALIGN="TOP" WIDTH="25%"> 100 <A NAME="android.content.Context.getExternalMediaDirs_added()"></A> 101 <nobr><code>File[]</code> <A HREF="../../../../reference/android/content/Context.html#getExternalMediaDirs()" target="_top"><code>getExternalMediaDirs</code></A>()</nobr> 102 </TD> 103 <TD> </TD> 104</TR> 105<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 106 <TD VALIGN="TOP" WIDTH="25%"> 107 <A NAME="android.content.Context.getNoBackupFilesDir_added()"></A> 108 <nobr><code>File</code> <A HREF="../../../../reference/android/content/Context.html#getNoBackupFilesDir()" target="_top"><code>getNoBackupFilesDir</code></A>()</nobr> 109 </TD> 110 <TD> </TD> 111</TR> 112</TABLE> 113 114<p> 115<a NAME="Changed"></a> 116<TABLE summary="Changed Methods" WIDTH="100%"> 117<TR> 118 <TH VALIGN="TOP" COLSPAN=3>Changed Methods</FONT></TD> 119</TH> 120<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 121 <TD VALIGN="TOP" WIDTH="25%"> 122 <A NAME="android.content.Context.removeStickyBroadcast_changed(android.content.Intent)"></A> 123 <nobr><code>void</code> <A HREF="../../../../reference/android/content/Context.html#removeStickyBroadcast(android.content.Intent)" target="_top"><code>removeStickyBroadcast</code></A>(<code>Intent</code>) </nobr> 124 </TD> 125 <TD VALIGN="TOP" WIDTH="30%"> 126<b>Now deprecated</b>.<br> 127 </TD> 128 <TD> </TD> 129</TR> 130<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 131 <TD VALIGN="TOP" WIDTH="25%"> 132 <A NAME="android.content.Context.removeStickyBroadcastAsUser_changed(android.content.Intent, android.os.UserHandle)"></A> 133 <nobr><code>void</code> <A HREF="../../../../reference/android/content/Context.html#removeStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle)" target="_top"><code>removeStickyBroadcastAsUser</code></A>(<code>Intent,</nobr> UserHandle<nobr><nobr></code>) </nobr> 134 </TD> 135 <TD VALIGN="TOP" WIDTH="30%"> 136<b>Now deprecated</b>.<br> 137 </TD> 138 <TD> </TD> 139</TR> 140<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 141 <TD VALIGN="TOP" WIDTH="25%"> 142 <A NAME="android.content.Context.sendStickyBroadcast_changed(android.content.Intent)"></A> 143 <nobr><code>void</code> <A HREF="../../../../reference/android/content/Context.html#sendStickyBroadcast(android.content.Intent)" target="_top"><code>sendStickyBroadcast</code></A>(<code>Intent</code>) </nobr> 144 </TD> 145 <TD VALIGN="TOP" WIDTH="30%"> 146<b>Now deprecated</b>.<br> 147 </TD> 148 <TD> </TD> 149</TR> 150<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 151 <TD VALIGN="TOP" WIDTH="25%"> 152 <A NAME="android.content.Context.sendStickyBroadcastAsUser_changed(android.content.Intent, android.os.UserHandle)"></A> 153 <nobr><code>void</code> <A HREF="../../../../reference/android/content/Context.html#sendStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle)" target="_top"><code>sendStickyBroadcastAsUser</code></A>(<code>Intent,</nobr> UserHandle<nobr><nobr></code>) </nobr> 154 </TD> 155 <TD VALIGN="TOP" WIDTH="30%"> 156<b>Now deprecated</b>.<br> 157 </TD> 158 <TD> </TD> 159</TR> 160<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 161 <TD VALIGN="TOP" WIDTH="25%"> 162 <A NAME="android.content.Context.sendStickyOrderedBroadcast_changed(android.content.Intent, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)"></A> 163 <nobr><code>void</code> <A HREF="../../../../reference/android/content/Context.html#sendStickyOrderedBroadcast(android.content.Intent, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)" target="_top"><code>sendStickyOrderedBroadcast</code></A>(<code>Intent,</nobr> BroadcastReceiver<nobr>,</nobr> Handler<nobr>,</nobr> int<nobr>,</nobr> String<nobr>,</nobr> Bundle<nobr><nobr></code>) </nobr> 164 </TD> 165 <TD VALIGN="TOP" WIDTH="30%"> 166<b>Now deprecated</b>.<br> 167 </TD> 168 <TD> </TD> 169</TR> 170<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 171 <TD VALIGN="TOP" WIDTH="25%"> 172 <A NAME="android.content.Context.sendStickyOrderedBroadcastAsUser_changed(android.content.Intent, android.os.UserHandle, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)"></A> 173 <nobr><code>void</code> <A HREF="../../../../reference/android/content/Context.html#sendStickyOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)" target="_top"><code>sendStickyOrderedBroadcastAsUser</code></A>(<code>Intent,</nobr> UserHandle<nobr>,</nobr> BroadcastReceiver<nobr>,</nobr> Handler<nobr>,</nobr> int<nobr>,</nobr> String<nobr>,</nobr> Bundle<nobr><nobr></code>) </nobr> 174 </TD> 175 <TD VALIGN="TOP" WIDTH="30%"> 176<b>Now deprecated</b>.<br> 177 </TD> 178 <TD> </TD> 179</TR> 180</TABLE> 181 182<a NAME="fields"></a> 183<p> 184<a NAME="Added"></a> 185<TABLE summary="Added Fields" WIDTH="100%"> 186<TR> 187 <TH VALIGN="TOP" COLSPAN=2>Added Fields</FONT></TD> 188</TH> 189<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 190 <TD VALIGN="TOP" WIDTH="25%"> 191 <A NAME="android.content.Context.APPWIDGET_SERVICE"></A> 192 <nobr><code>String</code> <A HREF="../../../../reference/android/content/Context.html#APPWIDGET_SERVICE" target="_top"><code>APPWIDGET_SERVICE</code></A></nobr> 193 </TD> 194 <TD> </TD> 195</TR> 196<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 197 <TD VALIGN="TOP" WIDTH="25%"> 198 <A NAME="android.content.Context.BATTERY_SERVICE"></A> 199 <nobr><code>String</code> <A HREF="../../../../reference/android/content/Context.html#BATTERY_SERVICE" target="_top"><code>BATTERY_SERVICE</code></A></nobr> 200 </TD> 201 <TD> </TD> 202</TR> 203<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 204 <TD VALIGN="TOP" WIDTH="25%"> 205 <A NAME="android.content.Context.CAMERA_SERVICE"></A> 206 <nobr><code>String</code> <A HREF="../../../../reference/android/content/Context.html#CAMERA_SERVICE" target="_top"><code>CAMERA_SERVICE</code></A></nobr> 207 </TD> 208 <TD> </TD> 209</TR> 210<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 211 <TD VALIGN="TOP" WIDTH="25%"> 212 <A NAME="android.content.Context.JOB_SCHEDULER_SERVICE"></A> 213 <nobr><code>String</code> <A HREF="../../../../reference/android/content/Context.html#JOB_SCHEDULER_SERVICE" target="_top"><code>JOB_SCHEDULER_SERVICE</code></A></nobr> 214 </TD> 215 <TD> </TD> 216</TR> 217<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 218 <TD VALIGN="TOP" WIDTH="25%"> 219 <A NAME="android.content.Context.LAUNCHER_APPS_SERVICE"></A> 220 <nobr><code>String</code> <A HREF="../../../../reference/android/content/Context.html#LAUNCHER_APPS_SERVICE" target="_top"><code>LAUNCHER_APPS_SERVICE</code></A></nobr> 221 </TD> 222 <TD> </TD> 223</TR> 224<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 225 <TD VALIGN="TOP" WIDTH="25%"> 226 <A NAME="android.content.Context.MEDIA_PROJECTION_SERVICE"></A> 227 <nobr><code>String</code> <A HREF="../../../../reference/android/content/Context.html#MEDIA_PROJECTION_SERVICE" target="_top"><code>MEDIA_PROJECTION_SERVICE</code></A></nobr> 228 </TD> 229 <TD> </TD> 230</TR> 231<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 232 <TD VALIGN="TOP" WIDTH="25%"> 233 <A NAME="android.content.Context.MEDIA_SESSION_SERVICE"></A> 234 <nobr><code>String</code> <A HREF="../../../../reference/android/content/Context.html#MEDIA_SESSION_SERVICE" target="_top"><code>MEDIA_SESSION_SERVICE</code></A></nobr> 235 </TD> 236 <TD> </TD> 237</TR> 238<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 239 <TD VALIGN="TOP" WIDTH="25%"> 240 <A NAME="android.content.Context.RESTRICTIONS_SERVICE"></A> 241 <nobr><code>String</code> <A HREF="../../../../reference/android/content/Context.html#RESTRICTIONS_SERVICE" target="_top"><code>RESTRICTIONS_SERVICE</code></A></nobr> 242 </TD> 243 <TD> </TD> 244</TR> 245<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 246 <TD VALIGN="TOP" WIDTH="25%"> 247 <A NAME="android.content.Context.TELECOM_SERVICE"></A> 248 <nobr><code>String</code> <A HREF="../../../../reference/android/content/Context.html#TELECOM_SERVICE" target="_top"><code>TELECOM_SERVICE</code></A></nobr> 249 </TD> 250 <TD> </TD> 251</TR> 252<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 253 <TD VALIGN="TOP" WIDTH="25%"> 254 <A NAME="android.content.Context.TV_INPUT_SERVICE"></A> 255 <nobr><code>String</code> <A HREF="../../../../reference/android/content/Context.html#TV_INPUT_SERVICE" target="_top"><code>TV_INPUT_SERVICE</code></A></nobr> 256 </TD> 257 <TD> </TD> 258</TR> 259</TABLE> 260 261 </div> 262 <div id="footer"> 263 <div id="copyright"> 264 Except as noted, this content is licensed under 265 <a href="//creativecommons.org/licenses/by/2.5/"> Creative Commons Attribution 2.5</a>. 266 For details and restrictions, see the <a href="/license.html">Content License</a>. 267 </div> 268 <div id="footerlinks"> 269 <p> 270 <a href="//www.android.com/terms.html">Site Terms of Service</a> - 271 <a href="//www.android.com/privacy.html">Privacy Policy</a> - 272 <a href="//www.android.com/branding.html">Brand Guidelines</a> 273 </p> 274 </div> 275 </div> <!-- end footer --> 276 </div><!-- end doc-content --> 277 </div> <!-- end body-content --> 278<script src="//www.google-analytics.com/ga.js" type="text/javascript"> 279</script> 280<script type="text/javascript"> 281 try { 282 var pageTracker = _gat._getTracker("UA-5831155-1"); 283 pageTracker._setAllowAnchor(true); 284 pageTracker._initData(); 285 pageTracker._trackPageview(); 286 } catch(e) {} 287</script> 288</BODY> 289</HTML> 290