From 50a624a47ce645a7992e346e40a4e7ec5e0df9b7 Mon Sep 17 00:00:00 2001 From: Jake Hamby Date: Tue, 17 May 2011 18:49:03 -0700 Subject: Initial checkin of Cell Broadcast display application. Simple Cell Broadcast application. Supports ETWS and CMAS emergency messages, and can be extended to support other types of PWS (Public Warning System) emergency warnings. User preferences for configuration of each supported national system (ETWS, CMAS, and channel 50 broadcasts for Brazil) are displayed/hidden based on the values in res/values/config.xml. For emergency alerts, a flashing warning icon and special alert sound is played. If there is a text-to-speech engine installed for the language of the broadcast, then the contents of the broadcast message will be spoken after the alert sound is played. The user can disable the text-to-speech feature in settings, as well as adjusting the length of the alert sound and enabling/disabling delivery of several emergency broadcast channels. The CellBroadcastReceiverTests apk includes a launcher activity with buttons for sending each type of test message. This APK must be signed with the system certificate in order to acquire the BROADCAST_SMS permission required to send test broadcasts to the app. Change-Id: If9b61e02c246de5783b3e39cd100ea707ea80084 --- res/layout/cell_broadcast_list_item.xml | 59 +++++++++++++++++++++++++++++ res/layout/cell_broadcast_list_screen.xml | 28 ++++++++++++++ res/layout/delete_broadcast_dialog_view.xml | 28 ++++++++++++++ 3 files changed, 115 insertions(+) create mode 100644 res/layout/cell_broadcast_list_item.xml create mode 100644 res/layout/cell_broadcast_list_screen.xml create mode 100644 res/layout/delete_broadcast_dialog_view.xml (limited to 'res/layout') diff --git a/res/layout/cell_broadcast_list_item.xml b/res/layout/cell_broadcast_list_item.xml new file mode 100644 index 00000000..a039aff1 --- /dev/null +++ b/res/layout/cell_broadcast_list_item.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + diff --git a/res/layout/cell_broadcast_list_screen.xml b/res/layout/cell_broadcast_list_screen.xml new file mode 100644 index 00000000..44de8ee9 --- /dev/null +++ b/res/layout/cell_broadcast_list_screen.xml @@ -0,0 +1,28 @@ + + + + diff --git a/res/layout/delete_broadcast_dialog_view.xml b/res/layout/delete_broadcast_dialog_view.xml new file mode 100644 index 00000000..0ae4328f --- /dev/null +++ b/res/layout/delete_broadcast_dialog_view.xml @@ -0,0 +1,28 @@ + + + + + + + + -- cgit v1.2.3