blob: f680e99f98c54218b7022aa3db8ceffad42b335b [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2016 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- This is valid -->
<shortcut
android:shortcutId="ms1"
android:shortcutShortLabel="@string/shortcut_title1"
>
<intent android:action="action1" >
<extra android:name="key1" android:value="value1" />
</intent>
</shortcut>
<!-- Invalid: no intent -->
<shortcut
android:shortcutId="ms_ignored1"
android:shortcutShortLabel="@string/shortcut_title1"
/>
<!-- Valid: more than one intent -->
<shortcut
android:shortcutId="ms2"
android:shortcutShortLabel="@string/shortcut_title1"
>
<intent android:action="action2_1" >
<extra android:name="key1" android:value="value1" />
</intent>
<intent android:action="action2_2">
<extra android:name="key2" android:value="value2" />
</intent>
</shortcut>
<!-- Valid: disabled shortcut doesn't need an intent -->
<shortcut
android:shortcutId="ms3"
android:enabled="false"
android:shortcutShortLabel="@string/shortcut_title1"
/>
<!-- Valid, but disabled shortcut's intent will be ignored. -->
<shortcut
android:shortcutId="ms4"
android:enabled="false"
android:shortcutShortLabel="@string/shortcut_title1"
>
<intent android:action="action4" />
</shortcut>
<!-- Invalid, no intent action (if any of the intents is invalid, the entire shortcut will be invalid.) -->
<shortcut
android:shortcutId="ms_ignored2"
android:shortcutShortLabel="@string/shortcut_title1"
>
<intent android:data="x"/>
<intent android:action="actionx"/>
</shortcut>
</shortcuts>