• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
18
19    <CheckBoxPreference
20        android:key="toggle_airplane"
21        android:title="@string/airplane_mode"
22        android:summary="@string/airplane_mode_summary"
23        android:persistent="false"
24        android:disableDependentsState="true" />
25
26    <!-- Programmatically will have dynamic summary, but we provide the fallback summary. -->
27    <CheckBoxPreference
28        android:key="toggle_wifi"
29        android:title="@string/wifi_quick_toggle_title"
30        android:summary="@string/wifi_quick_toggle_summary"
31        android:persistent="false" />
32
33    <PreferenceScreen
34        android:key="wifi_settings"
35        android:title="@string/wifi_settings"
36        android:summary="@string/wifi_settings_summary" >
37        <intent
38            android:action="android.intent.action.MAIN"
39            android:targetPackage="com.android.settings"
40            android:targetClass="com.android.settings.wifi.WifiSettings" />
41    </PreferenceScreen>
42
43    <CheckBoxPreference
44        android:key="toggle_bluetooth"
45        android:title="@string/bluetooth_quick_toggle_title"
46        android:summary="@string/bluetooth_quick_toggle_summary"
47        android:persistent="false"
48        android:dependency="toggle_airplane" />
49
50    <PreferenceScreen
51        android:key="bt_settings"
52        android:title="@string/bluetooth_settings_title"
53        android:summary="@string/bluetooth_settings_summary"
54        android:dependency="toggle_airplane">
55        <intent
56            android:action="android.intent.action.MAIN"
57            android:targetPackage="com.android.settings"
58            android:targetClass="com.android.settings.bluetooth.BluetoothSettings" />
59    </PreferenceScreen>
60
61    <PreferenceScreen
62        android:key="vpn_settings"
63        android:title="@string/vpn_settings_title"
64        android:summary="@string/vpn_settings_summary" >
65        <intent
66            android:action="android.intent.action.MAIN"
67            android:targetPackage="com.android.settings"
68            android:targetClass="com.android.settings.vpn.VpnSettings" />
69    </PreferenceScreen>
70
71    <PreferenceScreen
72        android:title="@string/network_settings_title"
73        android:summary="@string/network_settings_summary"
74        android:dependency="toggle_airplane">
75        <intent
76            android:action="android.intent.action.MAIN"
77            android:targetPackage="com.android.phone"
78            android:targetClass="com.android.phone.Settings" />
79    </PreferenceScreen>
80
81</PreferenceScreen>
82