diff options
author | Ken Shirriff <kens@google.com> | 2009-06-08 13:49:05 -0700 |
---|---|---|
committer | Ken Shirriff <kens@google.com> | 2009-06-08 13:57:26 -0700 |
commit | 03a6110b4f62e72592b451c05848cfaad8c65324 (patch) | |
tree | 3559c29c7d08000dcc6eb40423dc1e36ec238927 /AndroidManifest.xml | |
parent | 5ed2c4ad43f2c3c85a025da04becd2eaa75927a1 (diff) | |
download | packages_apps_settings-03a6110b4f62e72592b451c05848cfaad8c65324.zip packages_apps_settings-03a6110b4f62e72592b451c05848cfaad8c65324.tar.gz packages_apps_settings-03a6110b4f62e72592b451c05848cfaad8c65324.tar.bz2 |
Implement the power-control widget.
This widget allows uses to turn on/off bluetooth, wifi, gps, and sync,
and adjust brightness without going through the settings menu.
The widget provider updates the settings when the buttons are pressed.
The widget provider is also a receiver for events indicating that the
status was updated elsewhere and the buttons need to be changed.
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r-- | AndroidManifest.xml | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 204da69..150e27d 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -520,9 +520,16 @@ <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> - </application> + <receiver android:name=".widget.SettingsAppWidgetProvider" android:label="@string/gadget_title"> + <intent-filter> + <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> + <action android:name="android.net.wifi.WIFI_STATE_CHANGED" /> + <action android:name="android.net.conn.BACKGROUND_DATA_SETTING_CHANGED" /> + <action android:name="android.bluetooth.intent.action.BLUETOOTH_STATE_CHANGED" /> + <action android:name="android.intent.action.CLOSE_SYSTEM_DIALOGS" /> <!-- pick up misc changes --> + </intent-filter> + <meta-data android:name="android.appwidget.provider" android:resource="@xml/appwidget_info" /> + </receiver> + </application> </manifest> - - - |