From 24ba0688a6821728d2524fd84581df92e59d24ee Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Fri, 19 Nov 2010 14:00:23 -0800 Subject: [PATCH] Update Notification sample code for new APIs. Change-Id: Icaa86212192b9c9cef89d2d6013363955bd3a668 --- .../src/com/example/android/apis/app/IncomingMessage.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samples/ApiDemos/src/com/example/android/apis/app/IncomingMessage.java b/samples/ApiDemos/src/com/example/android/apis/app/IncomingMessage.java index f30a7c11a..03fef4aae 100644 --- a/samples/ApiDemos/src/com/example/android/apis/app/IncomingMessage.java +++ b/samples/ApiDemos/src/com/example/android/apis/app/IncomingMessage.java @@ -78,6 +78,7 @@ public class IncomingMessage extends Activity { // Set the info for the views that show in the notification panel. notif.setLatestEventInfo(this, from, message, contentIntent); + /* // On tablets, the ticker shows the sender, the first line of the message, // the photo of the person and the app icon. For our sample, we just show // the same icon twice. If there is no sender, just pass an array of 1 Bitmap. @@ -86,6 +87,7 @@ public class IncomingMessage extends Activity { notif.tickerIcons = new Bitmap[2]; notif.tickerIcons[0] = getIconBitmap();; notif.tickerIcons[1] = getIconBitmap();; + */ // after a 0ms delay, vibrate for 250ms, pause for 100 ms and // then vibrate for 500ms.