diff --git a/samples/browseable/ActiveNotifications/AndroidManifest.xml b/samples/browseable/ActiveNotifications/AndroidManifest.xml new file mode 100644 index 000000000..3a3928290 --- /dev/null +++ b/samples/browseable/ActiveNotifications/AndroidManifest.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + diff --git a/samples/browseable/ActiveNotifications/_index.jd b/samples/browseable/ActiveNotifications/_index.jd new file mode 100644 index 000000000..d8ce4a9d8 --- /dev/null +++ b/samples/browseable/ActiveNotifications/_index.jd @@ -0,0 +1,13 @@ + +page.tags="ActiveNotification" +sample.group=Notification +@jd:body + +

+ +The NotificationManager can tell you how many notifications your application is currently showing. +This sample demonstrates how to use this API that has been introduced with Android M. +To get started, press the "add a notification" button. +When a notification is being canceled, the count gets updated via a PendingIntent. + +

diff --git a/samples/browseable/ActiveNotifications/res/drawable-hdpi/tile.9.png b/samples/browseable/ActiveNotifications/res/drawable-hdpi/tile.9.png new file mode 100644 index 000000000..135862883 Binary files /dev/null and b/samples/browseable/ActiveNotifications/res/drawable-hdpi/tile.9.png differ diff --git a/samples/browseable/ActiveNotifications/res/layout-w720dp/activity_main.xml b/samples/browseable/ActiveNotifications/res/layout-w720dp/activity_main.xml new file mode 100755 index 000000000..c9a52f621 --- /dev/null +++ b/samples/browseable/ActiveNotifications/res/layout-w720dp/activity_main.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/browseable/ActiveNotifications/res/layout/activity_main.xml b/samples/browseable/ActiveNotifications/res/layout/activity_main.xml new file mode 100755 index 000000000..1ae4f981e --- /dev/null +++ b/samples/browseable/ActiveNotifications/res/layout/activity_main.xml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/samples/browseable/ActiveNotifications/res/layout/fragment_notification_builder.xml b/samples/browseable/ActiveNotifications/res/layout/fragment_notification_builder.xml new file mode 100644 index 000000000..379cd5eaf --- /dev/null +++ b/samples/browseable/ActiveNotifications/res/layout/fragment_notification_builder.xml @@ -0,0 +1,37 @@ + + + + + +