• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

.google/23-Nov-2023-2014

Application/23-Nov-2023-1,524828

gradle/wrapper/23-Nov-2023-66

screenshots/23-Nov-2023-

CONTRIB.mdD23-Nov-20231.6 KiB3627

CONTRIBUTING.mdD23-Nov-20231.5 KiB3627

LICENSED23-Nov-202311.1 KiB204170

README.mdD23-Nov-20232.9 KiB7553

build.gradleD23-Nov-202311 120

gradlewD23-Nov-20235 KiB165122

gradlew.batD23-Nov-20232.3 KiB9166

packaging.yamlD23-Nov-2023525 1712

settings.gradleD23-Nov-202322 21

README.md

1
2Android LNotifications Sample Sample
3===================================
4
5This sample demonstrates new features for notifications introduced in Android L.
6These features include heads-up notifications, visibility, people, category and priority
7metadata.
8
9Introduction
10------------
11
12Android 5.0 (Lollipop, API level 21) introduced additional features to the Notification API.
13Specifically, it allows developers to specify the priority and visibility level for
14notifications. This metadata allows the system to provide enhanced security for notifications
15while the lock screen is active, allows high-priority notifications to appear even when
16the notification bar is closed, and provides users to silence low-priority notifications
17when they're busy.
18
19This metadata is provided via additional arguments to the `Notification.Builder` class.
20
21Specifically, this sample demonstrates how to generate a heads-up notification
22(`HeadsUpNotificationFragment`), how to control visibility on the lock screen
23(`VisibilityMetadataFragment`), and how to set the category, priority, and associated contact
24for a notification (`OtherMetadataFragment`).
25
26Pre-requisites
27--------------
28
29- Android SDK 27
30- Android Build Tools v27.0.2
31- Android Support Repository
32
33Screenshots
34-------------
35
36<img src="screenshots/1-headsup.png" height="400" alt="Screenshot"/> <img src="screenshots/2-visibility.png" height="400" alt="Screenshot"/> <img src="screenshots/3-others.png" height="400" alt="Screenshot"/>
37
38Getting Started
39---------------
40
41This sample uses the Gradle build system. To build this project, use the
42"gradlew build" command or use "Import Project" in Android Studio.
43
44Support
45-------
46
47- Google+ Community: https://plus.google.com/communities/105153134372062985968
48- Stack Overflow: http://stackoverflow.com/questions/tagged/android
49
50If you've found an error in this sample, please file an issue:
51https://github.com/googlesamples/android-LNotifications Sample
52
53Patches are encouraged, and may be submitted by forking this project and
54submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.
55
56License
57-------
58
59Copyright 2017 The Android Open Source Project, Inc.
60
61Licensed to the Apache Software Foundation (ASF) under one or more contributor
62license agreements.  See the NOTICE file distributed with this work for
63additional information regarding copyright ownership.  The ASF licenses this
64file to you under the Apache License, Version 2.0 (the "License"); you may not
65use this file except in compliance with the License.  You may obtain a copy of
66the License at
67
68http://www.apache.org/licenses/LICENSE-2.0
69
70Unless required by applicable law or agreed to in writing, software
71distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
72WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
73License for the specific language governing permissions and limitations under
74the License.
75