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> 10 android.app.Notification 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"> 16 body{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> 74 Class android.app.<A HREF="../../../../reference/android/app/Notification.html" target="_top"><font size="+2"><code>Notification</code></font></A> 75 </H2> 76 <a NAME="constructors"></a> 77 <a NAME="methods"></a> 78 <a NAME="fields"></a> 79 <p> 80 <a NAME="Added"></a> 81 <TABLE summary="Added Fields" WIDTH="100%"> 82 <TR> 83 <TH VALIGN="TOP" COLSPAN=2>Added Fields</FONT></TD> 84 </TH> 85 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 86 <TD VALIGN="TOP" WIDTH="25%"> 87 <A NAME="android.app.Notification.AUDIO_ATTRIBUTES_DEFAULT"></A> 88 <nobr><code>AudioAttributes</code> <A HREF="../../../../reference/android/app/Notification.html#AUDIO_ATTRIBUTES_DEFAULT" target="_top"><code>AUDIO_ATTRIBUTES_DEFAULT</code></A></nobr> 89 </TD> 90 <TD> </TD> 91 </TR> 92 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 93 <TD VALIGN="TOP" WIDTH="25%"> 94 <A NAME="android.app.Notification.CATEGORY_ALARM"></A> 95 <nobr><code>String</code> <A HREF="../../../../reference/android/app/Notification.html#CATEGORY_ALARM" target="_top"><code>CATEGORY_ALARM</code></A></nobr> 96 </TD> 97 <TD> </TD> 98 </TR> 99 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 100 <TD VALIGN="TOP" WIDTH="25%"> 101 <A NAME="android.app.Notification.CATEGORY_CALL"></A> 102 <nobr><code>String</code> <A HREF="../../../../reference/android/app/Notification.html#CATEGORY_CALL" target="_top"><code>CATEGORY_CALL</code></A></nobr> 103 </TD> 104 <TD> </TD> 105 </TR> 106 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 107 <TD VALIGN="TOP" WIDTH="25%"> 108 <A NAME="android.app.Notification.CATEGORY_EMAIL"></A> 109 <nobr><code>String</code> <A HREF="../../../../reference/android/app/Notification.html#CATEGORY_EMAIL" target="_top"><code>CATEGORY_EMAIL</code></A></nobr> 110 </TD> 111 <TD> </TD> 112 </TR> 113 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 114 <TD VALIGN="TOP" WIDTH="25%"> 115 <A NAME="android.app.Notification.CATEGORY_ERROR"></A> 116 <nobr><code>String</code> <A HREF="../../../../reference/android/app/Notification.html#CATEGORY_ERROR" target="_top"><code>CATEGORY_ERROR</code></A></nobr> 117 </TD> 118 <TD> </TD> 119 </TR> 120 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 121 <TD VALIGN="TOP" WIDTH="25%"> 122 <A NAME="android.app.Notification.CATEGORY_EVENT"></A> 123 <nobr><code>String</code> <A HREF="../../../../reference/android/app/Notification.html#CATEGORY_EVENT" target="_top"><code>CATEGORY_EVENT</code></A></nobr> 124 </TD> 125 <TD> </TD> 126 </TR> 127 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 128 <TD VALIGN="TOP" WIDTH="25%"> 129 <A NAME="android.app.Notification.CATEGORY_MESSAGE"></A> 130 <nobr><code>String</code> <A HREF="../../../../reference/android/app/Notification.html#CATEGORY_MESSAGE" target="_top"><code>CATEGORY_MESSAGE</code></A></nobr> 131 </TD> 132 <TD> </TD> 133 </TR> 134 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 135 <TD VALIGN="TOP" WIDTH="25%"> 136 <A NAME="android.app.Notification.CATEGORY_PROGRESS"></A> 137 <nobr><code>String</code> <A HREF="../../../../reference/android/app/Notification.html#CATEGORY_PROGRESS" target="_top"><code>CATEGORY_PROGRESS</code></A></nobr> 138 </TD> 139 <TD> </TD> 140 </TR> 141 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 142 <TD VALIGN="TOP" WIDTH="25%"> 143 <A NAME="android.app.Notification.CATEGORY_PROMO"></A> 144 <nobr><code>String</code> <A HREF="../../../../reference/android/app/Notification.html#CATEGORY_PROMO" target="_top"><code>CATEGORY_PROMO</code></A></nobr> 145 </TD> 146 <TD> </TD> 147 </TR> 148 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 149 <TD VALIGN="TOP" WIDTH="25%"> 150 <A NAME="android.app.Notification.CATEGORY_RECOMMENDATION"></A> 151 <nobr><code>String</code> <A HREF="../../../../reference/android/app/Notification.html#CATEGORY_RECOMMENDATION" target="_top"><code>CATEGORY_RECOMMENDATION</code></A></nobr> 152 </TD> 153 <TD> </TD> 154 </TR> 155 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 156 <TD VALIGN="TOP" WIDTH="25%"> 157 <A NAME="android.app.Notification.CATEGORY_SERVICE"></A> 158 <nobr><code>String</code> <A HREF="../../../../reference/android/app/Notification.html#CATEGORY_SERVICE" target="_top"><code>CATEGORY_SERVICE</code></A></nobr> 159 </TD> 160 <TD> </TD> 161 </TR> 162 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 163 <TD VALIGN="TOP" WIDTH="25%"> 164 <A NAME="android.app.Notification.CATEGORY_SOCIAL"></A> 165 <nobr><code>String</code> <A HREF="../../../../reference/android/app/Notification.html#CATEGORY_SOCIAL" target="_top"><code>CATEGORY_SOCIAL</code></A></nobr> 166 </TD> 167 <TD> </TD> 168 </TR> 169 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 170 <TD VALIGN="TOP" WIDTH="25%"> 171 <A NAME="android.app.Notification.CATEGORY_STATUS"></A> 172 <nobr><code>String</code> <A HREF="../../../../reference/android/app/Notification.html#CATEGORY_STATUS" target="_top"><code>CATEGORY_STATUS</code></A></nobr> 173 </TD> 174 <TD> </TD> 175 </TR> 176 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 177 <TD VALIGN="TOP" WIDTH="25%"> 178 <A NAME="android.app.Notification.CATEGORY_SYSTEM"></A> 179 <nobr><code>String</code> <A HREF="../../../../reference/android/app/Notification.html#CATEGORY_SYSTEM" target="_top"><code>CATEGORY_SYSTEM</code></A></nobr> 180 </TD> 181 <TD> </TD> 182 </TR> 183 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 184 <TD VALIGN="TOP" WIDTH="25%"> 185 <A NAME="android.app.Notification.CATEGORY_TRANSPORT"></A> 186 <nobr><code>String</code> <A HREF="../../../../reference/android/app/Notification.html#CATEGORY_TRANSPORT" target="_top"><code>CATEGORY_TRANSPORT</code></A></nobr> 187 </TD> 188 <TD> </TD> 189 </TR> 190 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 191 <TD VALIGN="TOP" WIDTH="25%"> 192 <A NAME="android.app.Notification.COLOR_DEFAULT"></A> 193 <nobr><code>int</code> <A HREF="../../../../reference/android/app/Notification.html#COLOR_DEFAULT" target="_top"><code>COLOR_DEFAULT</code></A></nobr> 194 </TD> 195 <TD> </TD> 196 </TR> 197 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 198 <TD VALIGN="TOP" WIDTH="25%"> 199 <A NAME="android.app.Notification.EXTRA_BACKGROUND_IMAGE_URI"></A> 200 <nobr><code>String</code> <A HREF="../../../../reference/android/app/Notification.html#EXTRA_BACKGROUND_IMAGE_URI" target="_top"><code>EXTRA_BACKGROUND_IMAGE_URI</code></A></nobr> 201 </TD> 202 <TD> </TD> 203 </TR> 204 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 205 <TD VALIGN="TOP" WIDTH="25%"> 206 <A NAME="android.app.Notification.EXTRA_BIG_TEXT"></A> 207 <nobr><code>String</code> <A HREF="../../../../reference/android/app/Notification.html#EXTRA_BIG_TEXT" target="_top"><code>EXTRA_BIG_TEXT</code></A></nobr> 208 </TD> 209 <TD> </TD> 210 </TR> 211 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 212 <TD VALIGN="TOP" WIDTH="25%"> 213 <A NAME="android.app.Notification.EXTRA_COMPACT_ACTIONS"></A> 214 <nobr><code>String</code> <A HREF="../../../../reference/android/app/Notification.html#EXTRA_COMPACT_ACTIONS" target="_top"><code>EXTRA_COMPACT_ACTIONS</code></A></nobr> 215 </TD> 216 <TD> </TD> 217 </TR> 218 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 219 <TD VALIGN="TOP" WIDTH="25%"> 220 <A NAME="android.app.Notification.EXTRA_MEDIA_SESSION"></A> 221 <nobr><code>String</code> <A HREF="../../../../reference/android/app/Notification.html#EXTRA_MEDIA_SESSION" target="_top"><code>EXTRA_MEDIA_SESSION</code></A></nobr> 222 </TD> 223 <TD> </TD> 224 </TR> 225 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 226 <TD VALIGN="TOP" WIDTH="25%"> 227 <A NAME="android.app.Notification.EXTRA_TEMPLATE"></A> 228 <nobr><code>String</code> <A HREF="../../../../reference/android/app/Notification.html#EXTRA_TEMPLATE" target="_top"><code>EXTRA_TEMPLATE</code></A></nobr> 229 </TD> 230 <TD> </TD> 231 </TR> 232 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 233 <TD VALIGN="TOP" WIDTH="25%"> 234 <A NAME="android.app.Notification.INTENT_CATEGORY_NOTIFICATION_PREFERENCES"></A> 235 <nobr><code>String</code> <A HREF="../../../../reference/android/app/Notification.html#INTENT_CATEGORY_NOTIFICATION_PREFERENCES" target="_top"><code>INTENT_CATEGORY_NOTIFICATION_PREFERENCES</code></A></nobr> 236 </TD> 237 <TD> </TD> 238 </TR> 239 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 240 <TD VALIGN="TOP" WIDTH="25%"> 241 <A NAME="android.app.Notification.VISIBILITY_PRIVATE"></A> 242 <nobr><code>int</code> <A HREF="../../../../reference/android/app/Notification.html#VISIBILITY_PRIVATE" target="_top"><code>VISIBILITY_PRIVATE</code></A></nobr> 243 </TD> 244 <TD> </TD> 245 </TR> 246 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 247 <TD VALIGN="TOP" WIDTH="25%"> 248 <A NAME="android.app.Notification.VISIBILITY_PUBLIC"></A> 249 <nobr><code>int</code> <A HREF="../../../../reference/android/app/Notification.html#VISIBILITY_PUBLIC" target="_top"><code>VISIBILITY_PUBLIC</code></A></nobr> 250 </TD> 251 <TD> </TD> 252 </TR> 253 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 254 <TD VALIGN="TOP" WIDTH="25%"> 255 <A NAME="android.app.Notification.VISIBILITY_SECRET"></A> 256 <nobr><code>int</code> <A HREF="../../../../reference/android/app/Notification.html#VISIBILITY_SECRET" target="_top"><code>VISIBILITY_SECRET</code></A></nobr> 257 </TD> 258 <TD> </TD> 259 </TR> 260 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 261 <TD VALIGN="TOP" WIDTH="25%"> 262 <A NAME="android.app.Notification.audioAttributes"></A> 263 <nobr><code>AudioAttributes</code> <A HREF="../../../../reference/android/app/Notification.html#audioAttributes" target="_top"><code>audioAttributes</code></A></nobr> 264 </TD> 265 <TD> </TD> 266 </TR> 267 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 268 <TD VALIGN="TOP" WIDTH="25%"> 269 <A NAME="android.app.Notification.category"></A> 270 <nobr><code>String</code> <A HREF="../../../../reference/android/app/Notification.html#category" target="_top"><code>category</code></A></nobr> 271 </TD> 272 <TD> </TD> 273 </TR> 274 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 275 <TD VALIGN="TOP" WIDTH="25%"> 276 <A NAME="android.app.Notification.color"></A> 277 <nobr><code>int</code> <A HREF="../../../../reference/android/app/Notification.html#color" target="_top"><code>color</code></A></nobr> 278 </TD> 279 <TD> </TD> 280 </TR> 281 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 282 <TD VALIGN="TOP" WIDTH="25%"> 283 <A NAME="android.app.Notification.headsUpContentView"></A> 284 <nobr><code>RemoteViews</code> <A HREF="../../../../reference/android/app/Notification.html#headsUpContentView" target="_top"><code>headsUpContentView</code></A></nobr> 285 </TD> 286 <TD> </TD> 287 </TR> 288 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 289 <TD VALIGN="TOP" WIDTH="25%"> 290 <A NAME="android.app.Notification.publicVersion"></A> 291 <nobr><code>Notification</code> <A HREF="../../../../reference/android/app/Notification.html#publicVersion" target="_top"><code>publicVersion</code></A></nobr> 292 </TD> 293 <TD> </TD> 294 </TR> 295 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 296 <TD VALIGN="TOP" WIDTH="25%"> 297 <A NAME="android.app.Notification.visibility"></A> 298 <nobr><code>int</code> <A HREF="../../../../reference/android/app/Notification.html#visibility" target="_top"><code>visibility</code></A></nobr> 299 </TD> 300 <TD> </TD> 301 </TR> 302 </TABLE> 303 304 <p> 305 <a NAME="Changed"></a> 306 <TABLE summary="Changed Fields" WIDTH="100%"> 307 <TR> 308 <TH VALIGN="TOP" COLSPAN=3>Changed Fields</FONT></TD> 309 </TH> 310 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 311 <TD VALIGN="TOP" WIDTH="25%"> 312 <A NAME="android.app.Notification.STREAM_DEFAULT"></A> 313 <nobr><code>int</code> <A HREF="../../../../reference/android/app/Notification.html#STREAM_DEFAULT" target="_top"><code>STREAM_DEFAULT</code></font></A></nobr> </TD> 314 <TD VALIGN="TOP" WIDTH="30%"> 315 <b>Now deprecated</b>.<br> 316 </TD> 317 <TD> </TD> 318 </TR> 319 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 320 <TD VALIGN="TOP" WIDTH="25%"> 321 <A NAME="android.app.Notification.audioStreamType"></A> 322 <nobr><code>int</code> <A HREF="../../../../reference/android/app/Notification.html#audioStreamType" target="_top"><code>audioStreamType</code></font></A></nobr> </TD> 323 <TD VALIGN="TOP" WIDTH="30%"> 324 <b>Now deprecated</b>.<br> 325 </TD> 326 <TD> </TD> 327 </TR> 328 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 329 <TD VALIGN="TOP" WIDTH="25%"> 330 <A NAME="android.app.Notification.tickerView"></A> 331 <nobr><code>RemoteViews</code> <A HREF="../../../../reference/android/app/Notification.html#tickerView" target="_top"><code>tickerView</code></font></A></nobr> </TD> 332 <TD VALIGN="TOP" WIDTH="30%"> 333 <b>Now deprecated</b>.<br> 334 </TD> 335 <TD> </TD> 336 </TR> 337 </TABLE> 338 339 </div> 340 <div id="footer"> 341 <div id="copyright"> 342 Except as noted, this content is licensed under 343 <a href="//creativecommons.org/licenses/by/2.5/"> Creative Commons Attribution 2.5</a>. 344 For details and restrictions, see the <a href="/license.html">Content License</a>. 345 </div> 346 <div id="footerlinks"> 347 <p> 348 <a href="//www.android.com/terms.html">Site Terms of Service</a> - 349 <a href="//www.android.com/privacy.html">Privacy Policy</a> - 350 <a href="//www.android.com/branding.html">Brand Guidelines</a> 351 </p> 352 </div> 353 </div> <!-- end footer --> 354 </div><!-- end doc-content --> 355 </div> <!-- end body-content --> 356 <script src="//www.google-analytics.com/ga.js" type="text/javascript"> 357 </script> 358 <script type="text/javascript"> 359 try { 360 var pageTracker = _gat._getTracker("UA-5831155-1"); 361 pageTracker._setAllowAnchor(true); 362 pageTracker._initData(); 363 pageTracker._trackPageview(); 364 } catch(e) {} 365 </script> 366 </BODY> 367 </HTML> 368