1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* 4 * Copyright (C) 2007-2008 Esmertec AG. 5 * Copyright (C) 2007-2008 The Android Open Source Project 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19--> 20<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" 21 android:key="pref_key_root"> 22 <Preference 23 android:key="pref_key_sms_disabled" 24 android:title="@string/pref_title_sms_disabled" 25 android:summary="@string/pref_summary_sms_disabled" 26 android:persistent="false"> 27 <intent 28 android:action="android.provider.Telephony.ACTION_CHANGE_DEFAULT" 29 android:targetPackage="com.android.settings"> 30 <extra android:name="package" android:value="com.android.mms"/> 31 </intent> 32 </Preference> 33 <Preference 34 android:key="pref_key_sms_enabled" 35 android:title="@string/pref_title_sms_enabled" 36 android:summary="@string/pref_summary_sms_enabled" 37 android:persistent="false"> 38 <intent 39 android:action="android.settings.WIRELESS_SETTINGS" 40 android:targetPackage="com.android.settings"> 41 </intent> 42 </Preference> 43 <PreferenceCategory android:title="@string/pref_sms_storage_title" 44 android:key="pref_key_storage_settings"> 45<!-- 46 <Preference android:key="pref_key_mms_clear_history" 47 android:title="@string/pref_mms_clear_search_history_title" 48 android:summary="@string/pref_mms_clear_search_history_summary" /> 49--> 50 <CheckBoxPreference android:defaultValue="false" 51 android:key="pref_key_auto_delete" 52 android:summary="@string/pref_summary_auto_delete" 53 android:title="@string/pref_title_auto_delete" /> 54 <Preference android:key="pref_key_sms_delete_limit" 55 android:dependency="pref_key_auto_delete" 56 android:persistent="false" 57 android:summary="@string/pref_summary_delete_limit" 58 android:title="@string/pref_title_sms_delete" /> 59 <Preference android:key="pref_key_mms_delete_limit" 60 android:dependency="pref_key_auto_delete" 61 android:persistent="false" 62 android:summary="@string/pref_summary_delete_limit" 63 android:title="@string/pref_title_mms_delete" /> 64 </PreferenceCategory> 65 <PreferenceCategory android:title="@string/pref_sms_settings_title" 66 android:key="pref_key_sms_settings" > 67 <CheckBoxPreference android:defaultValue="false" 68 android:key="pref_key_sms_delivery_reports" 69 android:summary="@string/pref_summary_sms_delivery_reports" 70 android:title="@string/pref_title_sms_delivery_reports" /> 71 <Preference android:key="pref_key_manage_sim_messages" 72 android:summary="@string/pref_summary_manage_sim_messages" 73 android:title="@string/pref_title_manage_sim_messages" /> 74 </PreferenceCategory> 75 <PreferenceCategory android:title="@string/pref_mms_settings_title" 76 android:key="pref_key_mms_settings"> 77 <CheckBoxPreference android:defaultValue="true" 78 android:key="pref_key_mms_group_mms" 79 android:summary="@string/pref_summary_mms_group_mms" 80 android:title="@string/pref_title_mms_group_mms" /> 81 <CheckBoxPreference android:defaultValue="false" 82 android:key="pref_key_mms_delivery_reports" 83 android:summary="@string/pref_summary_mms_delivery_reports" 84 android:title="@string/pref_title_mms_delivery_reports" /> 85 <CheckBoxPreference android:defaultValue="false" 86 android:key="pref_key_mms_read_reports" 87 android:summary="@string/pref_summary_mms_read_reports" 88 android:title="@string/pref_title_mms_read_reports" /> 89 <CheckBoxPreference android:defaultValue="true" 90 android:key="pref_key_mms_auto_retrieval" 91 android:title="@string/pref_title_mms_auto_retrieval" 92 android:summary="@string/pref_summary_mms_auto_retrieval" /> 93 <CheckBoxPreference android:layout="?android:attr/preferenceLayoutChild" 94 android:dependency="pref_key_mms_auto_retrieval" 95 android:defaultValue="false" 96 android:key="pref_key_mms_retrieval_during_roaming" 97 android:title="@string/pref_title_mms_retrieval_during_roaming" 98 android:summary="@string/pref_summary_mms_retrieval_during_roaming" /> 99 </PreferenceCategory> 100 <PreferenceCategory android:title="@string/pref_notification_settings_title" 101 android:key="pref_key_notification_settings"> 102 <CheckBoxPreference android:key="pref_key_enable_notifications" 103 android:title="@string/pref_title_notification_enabled" 104 android:defaultValue="true" /> 105 <RingtonePreference android:key="pref_key_ringtone" 106 android:title="@string/pref_title_notification_ringtone" 107 android:ringtoneType="notification" 108 android:dependency="pref_key_enable_notifications" 109 android:defaultValue="content://settings/system/notification_sound" /> 110 <CheckBoxPreference android:key="pref_key_vibrate" 111 android:title="@string/pref_title_notification_vibrateWhen" 112 android:dependency="pref_key_enable_notifications" 113 android:defaultValue="false" /> 114 </PreferenceCategory> 115</PreferenceScreen> 116