|
|
@@ -257,8 +257,8 @@ public class StepService extends Service implements SensorEventListener {
|
|
|
|
|
|
@Override
|
|
|
public void onChange() {
|
|
|
- updateNotification("今日步数:" + StepDcretor.CURRENT_SETP + "," + i + " 步");
|
|
|
- // updateNotification("今日步数:" + StepDcretor.CURRENT_SETP + " 步");
|
|
|
+// updateNotification("今日步数:" + StepDcretor.CURRENT_SETP + "," + i + " 步");
|
|
|
+ updateNotification("今日步数:" + StepDcretor.CURRENT_SETP + " 步");
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
@@ -267,7 +267,8 @@ public class StepService extends Service implements SensorEventListener {
|
|
|
public void onSensorChanged(SensorEvent event) {
|
|
|
i++;
|
|
|
// StepDcretor.CURRENT_SETP++;
|
|
|
- updateNotification("今日步数:" + StepDcretor.CURRENT_SETP + "," + i + " 步");
|
|
|
+// updateNotification("今日步数:" + StepDcretor.CURRENT_SETP + "," + i + " 步");
|
|
|
+ updateNotification("今日步数:" + StepDcretor.CURRENT_SETP + " 步");
|
|
|
}
|
|
|
|
|
|
@Override
|