From eb808372f898d194b2d659167412c5ae864ba741 Mon Sep 17 00:00:00 2001 From: Jesse Young Date: Mon, 19 Sep 2011 14:58:23 -0700 Subject: [PATCH] add test mode to allow testing KalSMS on a phone that is also being used for normal messaging; allow user to configure specific phone numbers to handle --- AndroidManifest.xml | 14 ++- res/layout/add_test_phone_number.xml | 7 ++ res/layout/test_phone_number.xml | 9 ++ res/layout/test_phone_numbers.xml | 28 +++++ res/values/strings.xml | 6 +- res/xml/prefs.xml | 27 ++++- src/org/envaya/kalsms/App.java | 94 +++++++++++++++ src/org/envaya/kalsms/IncomingMessage.java | 5 + src/org/envaya/kalsms/OutgoingMessage.java | 3 - .../envaya/kalsms/receiver/SMSReceiver.java | 34 +++--- src/org/envaya/kalsms/ui/Help.java | 2 +- src/org/envaya/kalsms/ui/Prefs.java | 4 + .../envaya/kalsms/ui/TestPhoneNumbers.java | 107 ++++++++++++++++++ 13 files changed, 307 insertions(+), 33 deletions(-) create mode 100755 res/layout/add_test_phone_number.xml create mode 100755 res/layout/test_phone_number.xml create mode 100755 res/layout/test_phone_numbers.xml create mode 100755 src/org/envaya/kalsms/ui/TestPhoneNumbers.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 7a1d88a..31cc376 100755 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -25,14 +25,16 @@ - - - - + - + + + + + + + diff --git a/res/layout/add_test_phone_number.xml b/res/layout/add_test_phone_number.xml new file mode 100755 index 0000000..8c2c8f8 --- /dev/null +++ b/res/layout/add_test_phone_number.xml @@ -0,0 +1,7 @@ + + + \ No newline at end of file diff --git a/res/layout/test_phone_number.xml b/res/layout/test_phone_number.xml new file mode 100755 index 0000000..05e82c0 --- /dev/null +++ b/res/layout/test_phone_number.xml @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/res/layout/test_phone_numbers.xml b/res/layout/test_phone_numbers.xml new file mode 100755 index 0000000..2130614 --- /dev/null +++ b/res/layout/test_phone_numbers.xml @@ -0,0 +1,28 @@ + + + + + + + + +