diff options
author | Trevor Johns <trevorjohns@google.com> | 2016-06-15 09:52:40 -0700 |
---|---|---|
committer | Trevor Johns <trevorjohns@google.com> | 2016-06-15 11:07:40 -0700 |
commit | f9872ded3bb6cd3c01ab0881a58764f5171b4c64 (patch) | |
tree | 5ca5d897923d5518da3cee6145e821e5cc532277 /notification | |
parent | 55a4a8d0bb1c9a6fb80c6a35416cfc2f22e2bba7 (diff) | |
download | android-f9872ded3bb6cd3c01ab0881a58764f5171b4c64.tar.gz |
samples: Use API 23 by default, except for N-specific samples.
Since N is still in DP4, but we're building docs from nyc-dev now,
adjust build so that most samples are built using flags for API 23.
N-specific samples have overrides added in template-params.xml.
Also adjusted build tools version to 23.0.3. (I thought I'd done this
earlier.)
Change-Id: Ic3cde8d144b92b16fc24e1e49fd3bdda2c198429
Diffstat (limited to 'notification')
-rw-r--r-- | notification/ActiveNotifications/template-params.xml | 22 | ||||
-rw-r--r-- | notification/MessagingService/template-params.xml | 2 |
2 files changed, 13 insertions, 11 deletions
diff --git a/notification/ActiveNotifications/template-params.xml b/notification/ActiveNotifications/template-params.xml index b98c5ebb..6728c855 100644 --- a/notification/ActiveNotifications/template-params.xml +++ b/notification/ActiveNotifications/template-params.xml @@ -19,20 +19,20 @@ <group>Android N Preview</group> <package>com.example.android.activenotifications</package> - <minSdk>"N"</minSdk> - <targetSdkVersion>"N"</targetSdkVersion> - <compileSdkVersion>"android-N"</compileSdkVersion> + <minSdk>24</minSdk> + <compileSdkVersion>24</compileSdkVersion> + <targetSdkVersion>24</targetSdkVersion> <strings> <intro> <![CDATA[ Notifications can now be grouped in Android N. Since Android M, the -NotificationManager can tell you how many notifications your application -is currently showing. This sample demonstrates how to use these APIs -together for a nicer user experience when an app may have multiple -notifications. To get started, press the "add a notification" button. -If you add more than one notification a notification summary will be -added. When a notification is being canceled, the count gets updated +NotificationManager can tell you how many notifications your application +is currently showing. This sample demonstrates how to use these APIs +together for a nicer user experience when an app may have multiple +notifications. To get started, press the "add a notification" button. +If you add more than one notification a notification summary will be +added. When a notification is being canceled, the count gets updated via a PendingIntent. ]]> </intro> @@ -76,10 +76,10 @@ Notifications can now be grouped. Starting with Android N, you can set notification groups for notifications and define a notification group summary. -In Android M, you can query for the active notifications that your app sent +In Android M, you can query for the active notifications that your app sent sing the [notify][2] methods. -This sample demonstrates simple use of these features by allowing a user +This sample demonstrates simple use of these features by allowing a user to add notifications and then query how many notifications are currently being displayed via the [getActiveNotifications()][3] method. diff --git a/notification/MessagingService/template-params.xml b/notification/MessagingService/template-params.xml index c3aef393..554163ce 100644 --- a/notification/MessagingService/template-params.xml +++ b/notification/MessagingService/template-params.xml @@ -20,6 +20,8 @@ <package>com.example.android.messagingservice</package> <minSdk>21</minSdk> + <compileSdkVersion>24</compileSdkVersion> + <targetSdkVersion>24</targetSdkVersion> <strings> <intro> |