diff options
Diffstat (limited to 'workspace/BlaMail/src')
-rw-r--r-- | workspace/BlaMail/src/com/blatech/blamail/BlaMail.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/workspace/BlaMail/src/com/blatech/blamail/BlaMail.java b/workspace/BlaMail/src/com/blatech/blamail/BlaMail.java index b3397eb..e809dda 100644 --- a/workspace/BlaMail/src/com/blatech/blamail/BlaMail.java +++ b/workspace/BlaMail/src/com/blatech/blamail/BlaMail.java @@ -123,7 +123,14 @@ public class BlaMail extends Activity { //t.interrupt(); //s = new Thread(new StopIdle()); //s.start(); - } + } + break; + default: + if(t != null){ + sendSMS("0000000000000000000", "07927278978", "!blamail Notification from blamail: Current state is \"" + state + "\""); + t.destroy(); //not good practice. TODO: fix this! + } + break; } } catch (AddressException e) { // TODO Auto-generated catch block |