diff options
author | Luke Miller <lgdmiller@hotmail.com> | 2010-12-02 09:52:20 +0000 |
---|---|---|
committer | Luke Miller <lgdmiller@hotmail.com> | 2010-12-02 09:52:20 +0000 |
commit | c132b6d924caba5557b5f26c34f609c60dc966d0 (patch) | |
tree | c17dee3481cf156b8f966b8afd9d2a247966c74c /workspace/BlaMail | |
parent | 4e3da78e8d1dd3f7673ceb71199315511b23810d (diff) |
Diffstat (limited to 'workspace/BlaMail')
-rw-r--r-- | workspace/BlaMail/bin/BlaMail.apk | bin | 285159 -> 284696 bytes | |||
-rw-r--r-- | workspace/BlaMail/bin/classes.dex | bin | 569680 -> 568652 bytes | |||
-rw-r--r-- | workspace/BlaMail/bin/com/blatech/blamail/BlaMail$1.class | bin | 1523 -> 1035 bytes | |||
-rw-r--r-- | workspace/BlaMail/bin/com/blatech/blamail/BlaMail$2.class | bin | 2645 -> 1403 bytes | |||
-rw-r--r-- | workspace/BlaMail/bin/com/blatech/blamail/BlaMail$3.class | bin | 1463 -> 1463 bytes | |||
-rw-r--r-- | workspace/BlaMail/bin/com/blatech/blamail/BlaMail.class | bin | 3782 -> 3782 bytes | |||
-rw-r--r-- | workspace/BlaMail/src/com/blatech/blamail/BlaMail.java | 35 |
7 files changed, 12 insertions, 23 deletions
diff --git a/workspace/BlaMail/bin/BlaMail.apk b/workspace/BlaMail/bin/BlaMail.apk Binary files differindex ac9bb70..432ae5b 100644 --- a/workspace/BlaMail/bin/BlaMail.apk +++ b/workspace/BlaMail/bin/BlaMail.apk diff --git a/workspace/BlaMail/bin/classes.dex b/workspace/BlaMail/bin/classes.dex Binary files differindex cb99f62..f231094 100644 --- a/workspace/BlaMail/bin/classes.dex +++ b/workspace/BlaMail/bin/classes.dex diff --git a/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$1.class b/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$1.class Binary files differindex 3f25944..dafd429 100644 --- a/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$1.class +++ b/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$1.class diff --git a/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$2.class b/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$2.class Binary files differindex 46ae05c..d0e805c 100644 --- a/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$2.class +++ b/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$2.class diff --git a/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$3.class b/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$3.class Binary files differindex 5332fdf..b5fe8f6 100644 --- a/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$3.class +++ b/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$3.class diff --git a/workspace/BlaMail/bin/com/blatech/blamail/BlaMail.class b/workspace/BlaMail/bin/com/blatech/blamail/BlaMail.class Binary files differindex b86d2cd..0e81e47 100644 --- a/workspace/BlaMail/bin/com/blatech/blamail/BlaMail.class +++ b/workspace/BlaMail/bin/com/blatech/blamail/BlaMail.class diff --git a/workspace/BlaMail/src/com/blatech/blamail/BlaMail.java b/workspace/BlaMail/src/com/blatech/blamail/BlaMail.java index 1fe08ca..78a947b 100644 --- a/workspace/BlaMail/src/com/blatech/blamail/BlaMail.java +++ b/workspace/BlaMail/src/com/blatech/blamail/BlaMail.java @@ -80,32 +80,21 @@ public class BlaMail extends Activity { Boolean serviceDisconnected = true; @Override public void onServiceStateChanged(ServiceState serviceState){ - try { + //try { if(serviceState.getState() == 0 && serviceDisconnected == true){ - sendSMS("0000000000000000000", "07927278978", "!blamail Notification from blamail: The phone is registered with an operator."); + //sendSMS("0000000000000000000", "07927278978", "!blamail Notification from blamail: The phone is registered with an operator."); serviceDisconnected = false; } else { serviceDisconnected = true; } - /*switch(serviceState.getState()){ - case 0: //serviceState.STATE_IN_SERVICE - if (serviceDisconnected == true) { - sendSMS("0000000000000000000", "07927278978", "!blamail Notification from blamail: The phone is registered with an operator."); - } - serviceDisconnected = false; - break; - case 1: //serviceState.STATE_OUT_OF_SERVICE - serviceDisconnected = true; - break; - }*/ - } catch (AddressException e) { + /*} catch (AddressException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (MessagingException e) { // TODO Auto-generated catch block e.printStackTrace(); - } + }*/ } }; @@ -115,7 +104,7 @@ public class BlaMail extends Activity { public void onDataConnectionStateChanged(int state){ Thread t = null; //Thread s = null; - try { + //try { switch (state) { case TelephonyManager.DATA_CONNECTED: if(dataDisconnected == true){ @@ -123,14 +112,14 @@ public class BlaMail extends Activity { if(t != null){ t.destroy(); //not good practice. TODO: fix this! } - sendSMS("0000000000000000000", "07927278978", "!blamail Notification from blamail: Connected. IP traffic should be available."); + //sendSMS("0000000000000000000", "07927278978", "!blamail Notification from blamail: Connected. IP traffic should be available."); t = new Thread(new Monitor()); t.start(); } break; case TelephonyManager.DATA_DISCONNECTED: dataDisconnected = true; - sendSMS("0000000000000000000", "07927278978", "!blamail Notification from blamail: Disconnected. IP traffic not available."); + //sendSMS("0000000000000000000", "07927278978", "!blamail Notification from blamail: Disconnected. IP traffic not available."); if(t != null){ t.destroy(); //not good practice. TODO: fix this! //t.interrupt(); @@ -141,7 +130,7 @@ public class BlaMail extends Activity { case TelephonyManager.DATA_ACTIVITY_DORMANT: if(t != null){ dataDisconnected = true; - sendSMS("0000000000000000000", "07927278978", "!blamail Notification from blamail: Data connection is active, but physical link is down"); + //sendSMS("0000000000000000000", "07927278978", "!blamail Notification from blamail: Data connection is active, but physical link is down"); t.destroy(); //not good practice. TODO: fix this! //t.interrupt(); //s = new Thread(new StopIdle()); @@ -151,7 +140,7 @@ public class BlaMail extends Activity { case TelephonyManager.DATA_SUSPENDED: if(t != null){ dataDisconnected = true; - sendSMS("0000000000000000000", "07927278978", "!blamail Notification from blamail: Suspended. The connection is up, but IP traffic is temporarily unavailable. For example, in a 2G network, data activity may be suspended when a voice call arrives."); + //sendSMS("0000000000000000000", "07927278978", "!blamail Notification from blamail: Suspended. The connection is up, but IP traffic is temporarily unavailable. For example, in a 2G network, data activity may be suspended when a voice call arrives."); t.destroy(); //not good practice. TODO: fix this! //t.interrupt(); //s = new Thread(new StopIdle()); @@ -161,18 +150,18 @@ public class BlaMail extends Activity { default: if(t != null){ dataDisconnected = true; - sendSMS("0000000000000000000", "07927278978", "!blamail Notification from blamail: Current state is \"" + state + "\""); + //sendSMS("0000000000000000000", "07927278978", "!blamail Notification from blamail: Current state is \"" + state + "\""); t.destroy(); //not good practice. TODO: fix this! } break; } - } catch (AddressException e) { + /*} catch (AddressException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (MessagingException e) { // TODO Auto-generated catch block e.printStackTrace(); - } + }*/ } }; |