diff options
author | Daniel Sandler <dsandler@android.com> | 2012-04-04 11:02:33 -0400 |
---|---|---|
committer | Daniel Sandler <dsandler@android.com> | 2012-04-04 11:02:38 -0400 |
commit | 12c3678b28013f0941aaa1901648db637ae60766 (patch) | |
tree | 01138e9294aa4c10c1d4c8dd1b4e45a79a6f0c4c /NotificationShowcase/src | |
parent | a4038f6dabd4c6389a4b02ca10c06b63cfe848a2 (diff) | |
download | experimental-12c3678b28013f0941aaa1901648db637ae60766.tar.gz |
Testing Chronometer.
Change-Id: I897cba8c0972f4cb6a14a30dee91580a3f7eec22
Diffstat (limited to 'NotificationShowcase/src')
-rw-r--r-- | NotificationShowcase/src/com/android/example/notificationshowcase/NotificationShowcaseActivity.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/NotificationShowcase/src/com/android/example/notificationshowcase/NotificationShowcaseActivity.java b/NotificationShowcase/src/com/android/example/notificationshowcase/NotificationShowcaseActivity.java index d54f05e..8df3f81 100644 --- a/NotificationShowcase/src/com/android/example/notificationshowcase/NotificationShowcaseActivity.java +++ b/NotificationShowcase/src/com/android/example/notificationshowcase/NotificationShowcaseActivity.java @@ -117,6 +117,12 @@ public class NotificationShowcaseActivity extends Activity { .setAutoCancel(true) .getNotification()); + mNotifications.add(new Notification.Builder(this) + .setContentTitle("Stopwatch PRO") + .setContentText("Counting up") + .setSmallIcon(R.drawable.stat_notify_alarm) + .setUsesChronometer(true) + .getNotification()); mNotifications.add(new Notification.Builder(this) .setContentTitle("J Planning") |