summaryrefslogtreecommitdiffstats
path: root/res/xml/wireless_settings.xml
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-10-21 07:00:00 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2008-10-21 07:00:00 -0700
commitde2d9f5f109265873196f1615e1f3546b114aaa7 (patch)
treecd79c0fdeba9e5564571422a549b9a84e4ac43bb /res/xml/wireless_settings.xml
downloadpackages_apps_Settings-de2d9f5f109265873196f1615e1f3546b114aaa7.tar.gz
packages_apps_Settings-de2d9f5f109265873196f1615e1f3546b114aaa7.tar.bz2
packages_apps_Settings-de2d9f5f109265873196f1615e1f3546b114aaa7.zip
Initial Contribution
Diffstat (limited to 'res/xml/wireless_settings.xml')
-rw-r--r--res/xml/wireless_settings.xml76
1 files changed, 76 insertions, 0 deletions
diff --git a/res/xml/wireless_settings.xml b/res/xml/wireless_settings.xml
new file mode 100644
index 000000000..555a57064
--- /dev/null
+++ b/res/xml/wireless_settings.xml
@@ -0,0 +1,76 @@
+<?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">
+
+ <PreferenceCategory
+ android:title="@string/radio_controls_title">
+
+ <!-- Programmatically will have dynamic summary, but we provide the fallback summary. -->
+ <CheckBoxPreference
+ android:key="toggle_wifi"
+ android:title="@string/wifi_quick_toggle_title"
+ android:summary="@string/wifi_quick_toggle_summary"
+ android:persistent="false"
+ android:dependency="toggle_airplane" />
+
+ <PreferenceScreen
+ android:title="@string/wifi_settings"
+ android:summary="@string/wifi_settings_summary"
+ android:dependency="toggle_airplane">
+ <intent
+ android:action="android.intent.action.MAIN"
+ android:targetPackage="com.android.settings"
+ android:targetClass="com.android.settings.wifi.WifiSettings" />
+ </PreferenceScreen>
+
+ <CheckBoxPreference
+ android:key="toggle_bluetooth"
+ android:title="@string/bluetooth_quick_toggle_title"
+ android:summary="@string/bluetooth_quick_toggle_summary"
+ android:persistent="false"
+ android:dependency="toggle_airplane" />
+
+ <PreferenceScreen
+ android:title="@string/bluetooth_settings_title"
+ android:summary="@string/bluetooth_settings_summary"
+ android:dependency="toggle_airplane">
+ <intent
+ android:action="android.intent.action.MAIN"
+ android:targetPackage="com.android.settings"
+ android:targetClass="com.android.settings.BluetoothSettings" />
+ </PreferenceScreen>
+
+ <CheckBoxPreference
+ android:key="toggle_airplane"
+ android:title="@string/airplane_mode"
+ android:summary="@string/airplane_mode_summary"
+ android:persistent="false"
+ android:disableDependentsState="true" />
+
+ <PreferenceScreen
+ android:title="@string/network_settings_title"
+ android:summary="@string/network_settings_summary"
+ android:dependency="toggle_airplane">
+ <intent
+ android:action="android.intent.action.MAIN"
+ android:targetPackage="com.android.phone"
+ android:targetClass="com.android.phone.Settings" />
+ </PreferenceScreen>
+
+ </PreferenceCategory>
+
+</PreferenceScreen>