Files
android_development/samples/ShortcutSample/res/xml/shortcuts.xml
Makoto Onuki 8e1f716acc ShortcutManager sample application.
This is slightly more practical than ShortuctDemo.

This app allows the user to publish shortcuts to websites.

Bug 30259354

Change-Id: I0e7358aadf016c75c4926595abbe6ce117d69c2d
2016-07-22 15:27:47 -07:00

30 lines
1.2 KiB
XML

<?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" >
<shortcut
android:shortcutId="add_website"
android:icon="@drawable/add"
android:shortcutShortLabel="@string/add_new_website_short"
android:shortcutLongLabel="@string/add_new_website"
>
<intent
android:action="com.example.android.shortcutsample.ADD_WEBSITE"
android:targetPackage="com.example.android.shortcutsample"
android:targetClass="com.example.android.shortcutsample.Main"
/>
</shortcut>
</shortcuts>