Commit c6a2b6693ee9941fa034131ec235daad74419384
1 parent
2546fee6
1 修改定位误差为30米
Showing
4 changed files
with
13 additions
and
13 deletions
config.gradle
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,11 +291,11 @@ public class CollKeepLiveService extends Service implements MediaPlayer.OnComple | ||
| 291 | if (isRun) { | 291 | if (isRun) { |
| 292 | Log.e(TAG, "重新播放"); | 292 | Log.e(TAG, "重新播放"); |
| 293 | mediaPlayer.start(); | 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 | } else { | 299 | } else { |
| 300 | Log.e(TAG, "停止重新播放"); | 300 | Log.e(TAG, "停止重新播放"); |
| 301 | stopPlaySong(); | 301 | stopPlaySong(); |
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/model/Constant.java
| @@ -38,8 +38,8 @@ public class Constant { | @@ -38,8 +38,8 @@ public class Constant { | ||
| 38 | public static final double PASS_RATE = 0.7;//通过率70% | 38 | public static final double PASS_RATE = 0.7;//通过率70% |
| 39 | public static final int CHECK_ACCURACY = 50;//判断用户是否完成的精度范围 | 39 | public static final int CHECK_ACCURACY = 50;//判断用户是否完成的精度范围 |
| 40 | public static final int LOCA_ACCURACY = 20;//定位过滤精度 | 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 | public static final int FENCE_OFFSET = 50;//围栏偏离距离 | 43 | public static final int FENCE_OFFSET = 50;//围栏偏离距离 |
| 44 | public static final int FENCE_DENOISE = 20;//围栏去噪精度 | 44 | public static final int FENCE_DENOISE = 20;//围栏去噪精度 |
| 45 | public static final int TAKE_POINT_MAX_SIZE = 100;//最大打点数量 | 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,11 +308,11 @@ public class KeepLiveService extends Service implements MediaPlayer.OnCompletion | ||
| 308 | if (isRun) { | 308 | if (isRun) { |
| 309 | Log.e(TAG, "重新播放"); | 309 | Log.e(TAG, "重新播放"); |
| 310 | mediaPlayer.start(); | 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 | } else { | 316 | } else { |
| 317 | Log.e(TAG, "停止重新播放"); | 317 | Log.e(TAG, "停止重新播放"); |
| 318 | stopPlaySong(); | 318 | stopPlaySong(); |