OSDN Git Service

Implement the power-control widget.
authorKen Shirriff <kens@google.com>
Mon, 8 Jun 2009 20:49:05 +0000 (13:49 -0700)
committerKen Shirriff <kens@google.com>
Mon, 8 Jun 2009 20:57:26 +0000 (13:57 -0700)
commit03a6110b4f62e72592b451c05848cfaad8c65324
tree3559c29c7d08000dcc6eb40423dc1e36ec238927
parent5ed2c4ad43f2c3c85a025da04becd2eaa75927a1
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.
23 files changed:
AndroidManifest.xml
res/drawable/icon.png [new file with mode: 0755]
res/drawable/widget_bg.9.png [new file with mode: 0644]
res/drawable/widget_btn.xml [new file with mode: 0644]
res/drawable/widget_btn_bluetooth.png [new file with mode: 0644]
res/drawable/widget_btn_bluetooth_gray.png [new file with mode: 0644]
res/drawable/widget_btn_bluetooth_off.png [new file with mode: 0644]
res/drawable/widget_btn_brightness.png [new file with mode: 0644]
res/drawable/widget_btn_brightness_off.png [new file with mode: 0644]
res/drawable/widget_btn_default.9.png [new file with mode: 0644]
res/drawable/widget_btn_gps.png [new file with mode: 0644]
res/drawable/widget_btn_gps_off.png [new file with mode: 0644]
res/drawable/widget_btn_pressed.9.png [new file with mode: 0644]
res/drawable/widget_btn_selected.9.png [new file with mode: 0644]
res/drawable/widget_btn_sync.png [new file with mode: 0644]
res/drawable/widget_btn_sync_off.png [new file with mode: 0644]
res/drawable/widget_btn_wifi.png [new file with mode: 0644]
res/drawable/widget_btn_wifi_gray.png [new file with mode: 0644]
res/drawable/widget_btn_wifi_off.png [new file with mode: 0644]
res/layout/widget.xml [new file with mode: 0644]
res/values/strings.xml
res/xml/appwidget_info.xml [new file with mode: 0644]
src/com/android/settings/widget/SettingsAppWidgetProvider.java [new file with mode: 0644]