Implement call and SMS shortcuts.
This is basically the code from AnyCut integrated into the contacts app.
It doesn't yet let you change the shortcut name before it is added, but that
would be nice to do.
diff --git a/res/drawable-finger/badge_action_call.png b/res/drawable-finger/badge_action_call.png
new file mode 100644
index 0000000..3bc88a3
--- /dev/null
+++ b/res/drawable-finger/badge_action_call.png
Binary files differ
diff --git a/res/drawable-finger/badge_action_sms.png b/res/drawable-finger/badge_action_sms.png
new file mode 100644
index 0000000..bbcfb59
--- /dev/null
+++ b/res/drawable-finger/badge_action_sms.png
Binary files differ
diff --git a/res/values/colors.xml b/res/values/colors.xml
new file mode 100644
index 0000000..fb4019d
--- /dev/null
+++ b/res/values/colors.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 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.
+-->
+
+<resources>
+ <color name="textColorIconOverlay">#fff</color>
+ <color name="textColorIconOverlayShadow">#000</color>
+</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index c147479..fe866f7 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -27,6 +27,23 @@
This shows up in a list of things like bookmark, folder, music playlist, etc -->
<string name="shortcutContact">Contact</string>
+ <!-- Name of activity that allows users to create shortcuts on the home screen to dial a contact.
+ This shows up in a list of things like bookmark, folder, music playlist, etc -->
+ <string name="shortcutDialContact">Direct Dial</string>
+
+ <!-- Name of activity that allows users to create shortcuts on the home screen to message (SMS) a contact.
+ This shows up in a list of things like bookmark, folder, music playlist, etc -->
+ <string name="shortcutMessageContact">Direct Message</string>
+
+ <!-- Activity title when the user is selecting a contact for a shortcut. -->
+ <string name="shortcutActivityTitle">Choose a contact shortcut</string>
+
+ <!-- Activity title when the user is selecting a contact for a direct dial shortcut. -->
+ <string name="callShortcutActivityTitle">Choose a number to call</string>
+
+ <!-- Activity title when the user is selecting a contact for a direct message shortcut. -->
+ <string name="messageShortcutActivityTitle">Choose a number to message</string>
+
<!-- Title for the activity that shows only starred contacts -->
<string name="starredList">Starred</string>