summaryrefslogtreecommitdiffstats
path: root/res/xml
diff options
context:
space:
mode:
Diffstat (limited to 'res/xml')
-rw-r--r--res/xml/preferences.xml41
-rw-r--r--res/xml/searchable.xml39
2 files changed, 80 insertions, 0 deletions
diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml
new file mode 100644
index 000000000..dd18137f4
--- /dev/null
+++ b/res/xml/preferences.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2008 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.
+-->
+
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <PreferenceScreen
+ android:key="sync_groups"
+ android:title="@string/syncGroupPreference"
+ android:summary="@string/syncGroupPreference_summary">
+ <intent
+ android:action="android.intent.action.VIEW"
+ android:targetPackage="com.android.contacts"
+ android:targetClass="com.android.contacts.ContactsGroupSyncSelector"
+ />
+ </PreferenceScreen>
+
+ <PreferenceScreen
+ android:title="@string/importFromSim"
+ >
+
+ <intent
+ android:action="android.intent.action.VIEW"
+ android:mimeType="vnd.android.cursor.item/sim-contact"
+ android:targetPackage="com.android.phone"
+ android:targetClass="com.android.phone.SimContacts"
+ />
+ </PreferenceScreen>
+</PreferenceScreen>
diff --git a/res/xml/searchable.xml b/res/xml/searchable.xml
new file mode 100644
index 000000000..cd9e6d6a1
--- /dev/null
+++ b/res/xml/searchable.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2008 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.
+-->
+
+<!--
+ TODO: Use localizable string resources instead of hard-coded strings
+ once Search Manager is enhanced to allow them.
+-->
+<searchable xmlns:android="http://schemas.android.com/apk/res/android"
+ android:icon="@drawable/ic_tab_contacts"
+ android:label="@string/contactsList"
+ android:hint="@string/searchHint"
+ android:searchMode="queryRewriteFromText"
+
+ android:searchSuggestAuthority="contacts"
+ android:searchSuggestIntentAction="android.provider.Contacts.SEARCH_SUGGESTION_CLICKED"
+ android:searchSuggestIntentData="content://contacts/people"
+>
+
+ <!-- allow green action key for search-bar and per-suggestion clicks -->
+ <actionkey
+ android:keycode="KEYCODE_CALL"
+ android:queryActionMsg="call"
+ android:suggestActionMsg="call"
+ />
+
+</searchable>