Update Notification sample code for new APIs.
Change-Id: Icaa86212192b9c9cef89d2d6013363955bd3a668
This commit is contained in:
@@ -78,6 +78,7 @@ public class IncomingMessage extends Activity {
|
|||||||
// Set the info for the views that show in the notification panel.
|
// Set the info for the views that show in the notification panel.
|
||||||
notif.setLatestEventInfo(this, from, message, contentIntent);
|
notif.setLatestEventInfo(this, from, message, contentIntent);
|
||||||
|
|
||||||
|
/*
|
||||||
// On tablets, the ticker shows the sender, the first line of the message,
|
// 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 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.
|
// 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 = new Bitmap[2];
|
||||||
notif.tickerIcons[0] = getIconBitmap();;
|
notif.tickerIcons[0] = getIconBitmap();;
|
||||||
notif.tickerIcons[1] = getIconBitmap();;
|
notif.tickerIcons[1] = getIconBitmap();;
|
||||||
|
*/
|
||||||
|
|
||||||
// after a 0ms delay, vibrate for 250ms, pause for 100 ms and
|
// after a 0ms delay, vibrate for 250ms, pause for 100 ms and
|
||||||
// then vibrate for 500ms.
|
// then vibrate for 500ms.
|
||||||
|
|||||||
Reference in New Issue
Block a user