Commit c6a2b6693ee9941fa034131ec235daad74419384

Authored by 杨帅
1 parent 2546fee6

1 修改定位误差为30米

config.gradle
... ... @@ -21,7 +21,7 @@ ext {
21 21 //编译方式
22 22 debug : false,
23 23 //版本号
24   - version: "0.7.15",
  24 + version: "0.7.16",
25 25 //Lib库前缀
26 26 packeg : "com.cnlive.module",
27 27 //Lib库名称
... ...
moudle_pedometer/src/main/java/com/cnlive/moudle/collectionTrace/service/CollKeepLiveService.java
... ... @@ -291,11 +291,11 @@ public class CollKeepLiveService extends Service implements MediaPlayer.OnComple
291 291 if (isRun) {
292 292 Log.e(TAG, "重新播放");
293 293 mediaPlayer.start();
294   - Intent intent = new Intent("com.cnlive.strike.receiver.CollServiceReceiver");
295   - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
296   - intent.setComponent(new ComponentName(getPackageName(), "com.cnlive.strike.receiver.CollServiceReceiver"));//高版本Android发送广播需要加这句
297   - }
298   - sendBroadcast(intent);
  294 +// Intent intent = new Intent("com.cnlive.strike.receiver.CollServiceReceiver");
  295 +// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
  296 +// intent.setComponent(new ComponentName(getPackageName(), "com.cnlive.strike.receiver.CollServiceReceiver"));//高版本Android发送广播需要加这句
  297 +// }
  298 +// sendBroadcast(intent);
299 299 } else {
300 300 Log.e(TAG, "停止重新播放");
301 301 stopPlaySong();
... ...
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/model/Constant.java
... ... @@ -38,8 +38,8 @@ public class Constant {
38 38 public static final double PASS_RATE = 0.7;//通过率70%
39 39 public static final int CHECK_ACCURACY = 50;//判断用户是否完成的精度范围
40 40 public static final int LOCA_ACCURACY = 20;//定位过滤精度
41   - public static final int LOCA_END_POINT_ACCURACY = 20;//终点位置比较精度
42   - public static final int LOCA_START_POINT_ACCURACY = 20;//起点位置比较精度
  41 + public static final int LOCA_END_POINT_ACCURACY = 30;//终点位置比较精度
  42 + public static final int LOCA_START_POINT_ACCURACY = 30;//起点位置比较精度
43 43 public static final int FENCE_OFFSET = 50;//围栏偏离距离
44 44 public static final int FENCE_DENOISE = 20;//围栏去噪精度
45 45 public static final int TAKE_POINT_MAX_SIZE = 100;//最大打点数量
... ...
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/service/KeepLiveService.java
... ... @@ -308,11 +308,11 @@ public class KeepLiveService extends Service implements MediaPlayer.OnCompletion
308 308 if (isRun) {
309 309 Log.e(TAG, "重新播放");
310 310 mediaPlayer.start();
311   - Intent intent = new Intent("com.cnlive.strike.receiver.CollServiceReceiver");
312   - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
313   - intent.setComponent(new ComponentName(getPackageName(), "com.cnlive.strike.receiver.CollServiceReceiver"));//高版本Android发送广播需要加这句
314   - }
315   - sendBroadcast(intent);
  311 +// Intent intent = new Intent("com.cnlive.strike.receiver.CollServiceReceiver");
  312 +// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
  313 +// intent.setComponent(new ComponentName(getPackageName(), "com.cnlive.strike.receiver.CollServiceReceiver"));//高版本Android发送广播需要加这句
  314 +// }
  315 +// sendBroadcast(intent);
316 316 } else {
317 317 Log.e(TAG, "停止重新播放");
318 318 stopPlaySong();
... ...