Commits

Anonymous committed e8b963c

display destination phone number in interface, shutdown sensor hardware onDestroy

Comments (0)

Files changed (2)

src/to/rcpt/icarus/IcarusLogger.java

 
 public class IcarusLogger implements CompoundButton.OnCheckedChangeListener {
 
+	public final String destPhoneNumber = "4155086087";
 	final String logfileName = "IcarusLog";
-	final String destPhoneNumber = "4154836353";
 	final long sendInterval = 60000;
 
 	private PrintWriter file;

src/to/rcpt/icarus/IcarusMission.java

         b.setOnCheckedChangeListener(logger);
         ll.addView(b, index++);
         
+        TextView destNum = new TextView(this);
+        destNum.setText("Destination #: "+logger.destPhoneNumber);
+        ll.addView(destNum, index++);
+
         tv = new TextView(this);
         tv.setText("Hello, Icarus");
         ll.addView(tv, index++);
     	//previewFrames = 0;
     }
     
+    public void onDestroy() {
+    	super.onDestroy();
+    	ds.pause();
+    }
+    
     public void logDataEvent(String name, String data, long ts, boolean hasService) {
     	logger.logDataEvent(name, data, ts, hasService);
     	if (ts > 0)