1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /* 4 * Copyright (C) 2011 The Android Open Source Project 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 --> 19 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> 20 21 <PreferenceCategory android:title="@string/emergency_alert_settings_title" 22 android:key="emergency_alert_settings"> 23 24 <CheckBoxPreference android:defaultValue="true" 25 android:key="enable_emergency_alerts" 26 android:summary="@string/enable_emergency_alerts_summary" 27 android:title="@string/enable_emergency_alerts_title" /> 28 29 <ListPreference android:key="alert_sound_duration" 30 android:title="@string/alert_sound_duration_title" 31 android:entries="@array/alert_sound_duration_entries" 32 android:entryValues="@array/alert_sound_duration_values" 33 android:defaultValue="4" 34 android:dialogTitle="@string/alert_sound_duration_title" /> 35 36 <CheckBoxPreference android:defaultValue="true" 37 android:key="enable_alert_speech" 38 android:summary="@string/enable_alert_speech_summary" 39 android:title="@string/enable_alert_speech_title" /> 40 41 </PreferenceCategory> 42 <PreferenceCategory android:title="@string/category_etws_settings_title" 43 android:key="category_etws_settings"> 44 45 <CheckBoxPreference android:defaultValue="false" 46 android:key="enable_etws_test_alerts" 47 android:summary="@string/enable_etws_test_alerts_summary" 48 android:title="@string/enable_etws_test_alerts_title" /> 49 50 </PreferenceCategory> 51 <PreferenceCategory android:title="@string/category_cmas_settings_title" 52 android:key="category_cmas_settings"> 53 54 <CheckBoxPreference android:defaultValue="true" 55 android:key="enable_cmas_imminent_threat_alerts" 56 android:summary="@string/enable_cmas_imminent_threat_alerts_summary" 57 android:title="@string/enable_cmas_imminent_threat_alerts_title" /> 58 59 <CheckBoxPreference android:defaultValue="false" 60 android:key="enable_cmas_amber_alerts" 61 android:summary="@string/enable_cmas_amber_alerts_summary" 62 android:title="@string/enable_cmas_amber_alerts_title" /> 63 64 <CheckBoxPreference android:defaultValue="false" 65 android:key="enable_cmas_test_alerts" 66 android:summary="@string/enable_cmas_test_alerts_summary" 67 android:title="@string/enable_cmas_test_alerts_title" /> 68 69 </PreferenceCategory> 70 <PreferenceCategory android:title="@string/category_brazil_settings_title" 71 android:key="category_brazil_settings"> 72 73 <!-- Default value is true for Brazil. This preference is ignored and hidden 74 unless the boolean "show_brazil_settings" is set to true in config.xml. --> 75 <CheckBoxPreference android:defaultValue="true" 76 android:key="enable_channel_50_alerts" 77 android:summary="@string/enable_channel_50_alerts_summary" 78 android:title="@string/enable_channel_50_alerts_title" /> 79 80 </PreferenceCategory> 81 82 </PreferenceScreen> 83