internal MotionActivityNotification(Looper looper, Smotion motion) { // TODO Auto-generated constructor stub mActivityNotification = new SmotionActivityNotification(looper, motion); mFilter = null; initialize(); }
internal MotionActivityNotification(Looper looper, Smotion motion) { // TODO Auto-generated constructor stub mActivityNotification = new SmotionActivityNotification(looper, motion); mFilter = null; initialize(); }
public override void onChanged(SmotionActivityNotification.Info info) { // TODO Auto-generated method stub MotionTest.playSound(); outerInstance.displayData(info); }
private void displayData(SmotionActivityNotification.Info info) { StringBuilder sb = new StringBuilder(); string str = null; long timestamp = info.TimeStamp; Time time = new Time(); time.set(timestamp); Formatter form = new Formatter(); form.format("%02d:%02d:%02d", time.hour, time.minute, time.second); sb.Append("[" + form.ToString() + "] "); form.close(); str = getStatus(info.Status); sb.Append("(" + getAccuracy(info.Accuracy) + ")"); if (str != null) { MotionTest.displayData(0, str, sb.ToString()); } }