aboutsummaryrefslogtreecommitdiff
path: root/notification/LNotifications
diff options
context:
space:
mode:
authorTrevor Johns <trevorjohns@google.com>2014-12-16 03:45:24 -0800
committerTrevor Johns <trevorjohns@google.com>2014-12-23 15:53:44 -0800
commit63cd7a5417118086e51201ad8e6b5a966f521369 (patch)
tree272bd8100f82a9d6d56170a93dfe23dbab8517b9 /notification/LNotifications
parente2d472f4981dd1695eb5e2aabe03b39b383b770e (diff)
downloadandroid-63cd7a5417118086e51201ad8e6b5a966f521369.tar.gz
Add metadata for LNotifications sample
Change-Id: Ibf5ff53adf6aff03a47762252eb1821d9905287e
Diffstat (limited to 'notification/LNotifications')
-rw-r--r--notification/LNotifications/screenshots/1-headsup.pngbin0 -> 128403 bytes
-rw-r--r--notification/LNotifications/screenshots/2-visibility.pngbin0 -> 136092 bytes
-rw-r--r--notification/LNotifications/screenshots/3-others.pngbin0 -> 115027 bytes
-rw-r--r--notification/LNotifications/screenshots/icon-web.pngbin0 -> 86376 bytes
-rw-r--r--notification/LNotifications/template-params.xml45
5 files changed, 45 insertions, 0 deletions
diff --git a/notification/LNotifications/screenshots/1-headsup.png b/notification/LNotifications/screenshots/1-headsup.png
new file mode 100644
index 00000000..e84f7ecc
--- /dev/null
+++ b/notification/LNotifications/screenshots/1-headsup.png
Binary files differ
diff --git a/notification/LNotifications/screenshots/2-visibility.png b/notification/LNotifications/screenshots/2-visibility.png
new file mode 100644
index 00000000..54501107
--- /dev/null
+++ b/notification/LNotifications/screenshots/2-visibility.png
Binary files differ
diff --git a/notification/LNotifications/screenshots/3-others.png b/notification/LNotifications/screenshots/3-others.png
new file mode 100644
index 00000000..453c3838
--- /dev/null
+++ b/notification/LNotifications/screenshots/3-others.png
Binary files differ
diff --git a/notification/LNotifications/screenshots/icon-web.png b/notification/LNotifications/screenshots/icon-web.png
new file mode 100644
index 00000000..41a15113
--- /dev/null
+++ b/notification/LNotifications/screenshots/icon-web.png
Binary files differ
diff --git a/notification/LNotifications/template-params.xml b/notification/LNotifications/template-params.xml
index 6257c81d..88b2b139 100644
--- a/notification/LNotifications/template-params.xml
+++ b/notification/LNotifications/template-params.xml
@@ -35,4 +35,49 @@
<template src="base"/>
+ <metadata>
+ <status>PUBLISHED</status>
+ <categories>Notification</categories>
+ <technologies>Android</technologies>
+ <languages>Java</languages>
+ <solutions>Mobile</solutions>
+ <level>INTERMEDIATE</level>
+ <icon>screenshots/icon-web.png</icon>
+ <screenshots>
+ <img>screenshots/1-headsup.png</img>
+ <img>screenshots/2-visibility.png</img>
+ <img>screenshots/3-others.png</img>
+ </screenshots>
+ <api_refs>
+ <android>android.app.Notification</android>
+ <android>android.app.Notification.Builder</android>
+ <android>android.app.NotificationManager</android>
+ </api_refs>
+
+ <description>
+<![CDATA[
+This sample demonstrates new features for notifications introduced in Android L.
+These features include heads-up notifications, visibility, people, category and priority
+metadata.
+]]>
+ </description>
+
+ <intro>
+<![CDATA[
+Android 5.0 (Lollipop, API level 21) introduced additional features to the Notification API.
+Specifically, it allows developers to specify the priority and visibility level for
+notifications. This metadata allows the system to provide enhanced security for notifications
+while the lock screen is active, allows high-priority notifications to appear even when
+the notification bar is closed, and provides users to silence low-priority notifications
+when they're busy.
+
+This metadata is provided via additional arguments to the `Notification.Builder` class.
+
+Specifically, this sample demonstrates how to generate a heads-up notification
+(`HeadsUpNotificationFragment`), how to control visibility on the lock screen
+(`VisibilityMetadataFragment`), and how to set the category, priority, and associated contact
+for a notification (`OtherMetadataFragment`).
+]]>
+ </intro>
+ </metadata>
</sample>