/development/samples/ApiDemos/src/com/example/android/apis/app/ |
H A D | LocalService.java | 67 // Display a notification about us starting. We put an icon in the status bar. 81 // Cancel the persistent notification. 98 * Show a notification while this service is running. 101 // In this sample, we'll use the same text for the ticker and the expanded notification 105 Notification notification = new Notification(R.drawable.stat_sample, text, 108 // The PendingIntent to launch our activity if the user selects this notification 112 // Set the info for the views that show in the notification panel. 113 notification.setLatestEventInfo(this, getText(R.string.local_service_label), 116 // Send the notification. 117 mNM.notify(NOTIFICATION, notification); [all...] |
H A D | AlarmService_Service.java | 61 // Cancel the notification -- we use the same ID that we had used to start it 96 * Show a notification while this service is running. 99 // In this sample, we'll use the same text for the ticker and the expanded notification 103 Notification notification = new Notification(R.drawable.stat_sample, text, 106 // The PendingIntent to launch our activity if the user selects this notification 110 // Set the info for the views that show in the notification panel. 111 notification.setLatestEventInfo(this, getText(R.string.alarm_service_label), 114 // Send the notification. 116 mNM.notify(R.string.alarm_service_started, notification);
|
H A D | NotifyingService.java | 44 // variable which controls the notification thread 61 // Cancel the persistent notification. 94 // In this sample, we'll use the same text for the ticker and the expanded notification 102 Notification notification = new Notification(moodId, null, System.currentTimeMillis()); 104 // The PendingIntent to launch our activity if the user selects this notification 108 // Set the info for the views that show in the notification panel. 109 notification.setLatestEventInfo(this, getText(R.string.status_bar_notifications_mood_title), 112 // Send the notification. 114 mNM.notify(MOOD_NOTIFICATIONS, notification);
|
H A D | StatusBarNotifications.java | 50 // Get the notification manager serivce. 150 // notification. Note the use of FLAG_UPDATE_CURRENT so that if there 162 // into an application representing the data in the notification; to 184 // notification. Note the use of FLAG_UPDATE_CURRENT so that if there 194 // In this sample, we'll use the same text for the ticker and the expanded notification 201 Notification notification = new Notification(moodId, tickerText, 204 // Set the info for the views that show in the notification panel. 205 notification.setLatestEventInfo(this, getText(R.string.status_bar_notifications_mood_title), 208 // Send the notification. 210 mNotificationManager.notify(MOOD_NOTIFICATIONS, notification); [all...] |
H A D | MessengerService.java | 53 /** For showing and hiding our notification. */ 123 // Display a notification about us starting. 129 // Cancel the persistent notification. 146 * Show a notification while this service is running. 149 // In this sample, we'll use the same text for the ticker and the expanded notification 153 Notification notification = new Notification(R.drawable.stat_sample, text, 156 // The PendingIntent to launch our activity if the user selects this notification 160 // Set the info for the views that show in the notification panel. 161 notification.setLatestEventInfo(this, getText(R.string.remote_service_label), 164 // Send the notification [all...] |
H A D | ForegroundService.java | 83 void startForegroundCompat(int id, Notification notification) { argument 87 mStartForegroundArgs[1] = notification; 95 mNM.notify(id, notification); 141 // Make sure our notification is gone. 166 // In this sample, we'll use the same text for the ticker and the expanded notification 170 Notification notification = new Notification(R.drawable.stat_sample, text, 173 // The PendingIntent to launch our activity if the user selects this notification 177 // Set the info for the views that show in the notification panel. 178 notification.setLatestEventInfo(this, getText(R.string.local_service_label), 181 startForegroundCompat(R.string.foreground_service_started, notification); [all...] |
H A D | ServiceStartArguments.java | 110 // notification. 174 * Show a notification while this service is running. 178 Notification notification = new Notification(R.drawable.stat_sample, text, 181 // The PendingIntent to launch our activity if the user selects this notification 185 // Set the info for the views that show in the notification panel. 186 notification.setLatestEventInfo(this, getText(R.string.service_start_arguments_label), 190 notification.flags |= Notification.FLAG_ONGOING_EVENT; 192 // Send the notification. 194 mNM.notify(R.string.service_created, notification);
|
H A D | RemoteService.java | 73 // Display a notification about us starting. 84 // Cancel the persistent notification. 180 * Show a notification while this service is running. 183 // In this sample, we'll use the same text for the ticker and the expanded notification 187 Notification notification = new Notification(R.drawable.stat_sample, text, 190 // The PendingIntent to launch our activity if the user selects this notification 194 // Set the info for the views that show in the notification panel. 195 notification.setLatestEventInfo(this, getText(R.string.remote_service_label), 198 // Send the notification. 200 mNM.notify(R.string.remote_service_started, notification); [all...] |
/development/samples/KeyChainDemo/src/com/example/android/keychain/ |
H A D | SecureWebServerService.java | 31 // A special ID assigned to this on-going notification. 38 * Start the SSL web server and set an on-going notification 49 * Stop the SSL web server and remove the on-going notification 67 * Create an on-going notification. It will stop the server when the user 68 * clicks on the notification. 71 Log.d(TAG, "Create an ongoing notification"); 78 Notification notification = new Notification.Builder(this). 86 startForeground(ONGOING_NOTIFICATION, notification);
|
/development/samples/training/notify-user/src/com/example/android/pingme/ |
H A D | PingService.java | 26 * PingService creates a notification that includes 2 buttons: one to snooze the 27 * notification, and one to dismiss it. 74 // expanded view of the notification. 87 .setContentTitle(getString(R.string.notification)) 93 * in the detail area of the expanded notification. 105 * Clicking the notification itself displays ResultActivity, which provides 106 * UI for snoozing or dismissing the notification. 113 // Because clicking the notification opens a new ("special") activity, there's 130 // Including the notification ID allows you to update the notification late [all...] |
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
H A D | MainActivity.java | 268 .setContentIntent(getDialogPendingIntent("Tapped the notification entry.")); 271 // Sets a custom content view for the notification, including an image button. 272 RemoteViews layout = new RemoteViews(getPackageName(), R.layout.notification); 275 getDialogPendingIntent("Tapped the 'dialog' button in the notification."));
|
/development/samples/training/ContactsList/libs/ |
H A D | android-support-v4.jar | META-INF/ META-INF/MANIFEST.MF android/ android/support/ android/support/v4/ android/support/v4/accessibilityservice/ ... |
/development/samples/training/EffectiveNavigation/libs/ |
H A D | android-support-v4.jar | META-INF/ META-INF/MANIFEST.MF android/ android/support/ android/support/v4/ android/support/v4/accessibilityservice/ ... |
/development/samples/training/InteractiveChart/libs/ |
H A D | android-support-v4.jar | ... _r1/s?defs= " () static android.app.Notification add (android.content.Context, android.app. ... |
/development/samples/training/bitmapfun/libs/ |
H A D | android-support-v4.jar | ... _r1/s?defs= " () static android.app.Notification add (android.content.Context, android.app. ... |
/development/samples/training/NavigationDrawer/libs/ |
H A D | android-support-v4.jar | META-INF/ META-INF/MANIFEST.MF android/ android/support/ android/support/v4/ android/support/v4/util/ ... |