Browse Source

UU运动初步调试备份2

FANGLH 9 years ago
parent
commit
07bc31359e

+ 4 - 3
WeiChat/src/main/java/basepedo/service/StepService.java

@@ -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

+ 3 - 4
WeiChat/src/main/res/layout/activity_pedometer.xml

@@ -10,10 +10,9 @@
     <TextView
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
-        android:text="测试需知:
-        计步功能:暂时只测试了放在裤子口袋里计步。
-        屏蔽功能:连续运动一定时间才开始计步,屏蔽细微移动或者驾车时震动所带来的干扰。停止运动超过5秒,便重新开启屏蔽功能。
-        提示:10秒做一次数据存储"
+        android:text="计步功能:暂时只测试了放在裤子口袋里计步。
+屏蔽功能:连续运动一定时间才开始计步,屏蔽细微移动或者驾车时震动所带来的干扰。
+停止运动超过5秒,便重新开启屏蔽功能。提示:10秒做一次数据存储"
         />
     <TextView
         android:id="@+id/text_step"